- Small cleanups in SpatialAssetDataObject, BinaryModelDataObject

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10228 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent c2f1c53457
commit b9de3a2eb1
  1. 1
      sdk/jme3-core/src/com/jme3/gde/core/assets/BinaryModelDataObject.java
  2. 2
      sdk/jme3-core/src/com/jme3/gde/core/assets/SpatialAssetDataObject.java

@ -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);

Loading…
Cancel
Save