- 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:
nor..67 2013-01-28 21:24:05 +00:00
parent c2f1c53457
commit b9de3a2eb1
2 changed files with 0 additions and 3 deletions
sdk/jme3-core/src/com/jme3/gde/core/assets

@ -40,6 +40,5 @@ public class BinaryModelDataObject extends SpatialAssetDataObject {
public BinaryModelDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
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);
AssetData properties = targetModel.getLookup().lookup(AssetData.class);
if (properties != null) {
properties.loadProperties();
properties.setProperty("ORIGINAL_PATH", mgr.getRelativeAssetPath(outFile.getPath()));
properties.saveProperties();
}
} catch (Exception ex) {
Exceptions.printStackTrace(ex);