SDK:
- Small cleanups in SpatialAssetDataObject, BinaryModelDataObject git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10228 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
c2f1c53457
commit
b9de3a2eb1
@ -40,6 +40,5 @@ public class BinaryModelDataObject extends SpatialAssetDataObject {
|
|||||||
|
|
||||||
public BinaryModelDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
|
public BinaryModelDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
|
||||||
super(pf, loader);
|
super(pf, loader);
|
||||||
getLookup().lookup(AssetData.class).setExtension(BinaryModelFileLoader.INFO_EXTENSION);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -128,9 +128,7 @@ public class SpatialAssetDataObject extends AssetDataObject {
|
|||||||
DataObject targetModel = DataObject.find(outFile);
|
DataObject targetModel = DataObject.find(outFile);
|
||||||
AssetData properties = targetModel.getLookup().lookup(AssetData.class);
|
AssetData properties = targetModel.getLookup().lookup(AssetData.class);
|
||||||
if (properties != null) {
|
if (properties != null) {
|
||||||
properties.loadProperties();
|
|
||||||
properties.setProperty("ORIGINAL_PATH", mgr.getRelativeAssetPath(outFile.getPath()));
|
properties.setProperty("ORIGINAL_PATH", mgr.getRelativeAssetPath(outFile.getPath()));
|
||||||
properties.saveProperties();
|
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Exceptions.printStackTrace(ex);
|
Exceptions.printStackTrace(ex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user