SDK:
- do not overwrite "ORIGINAL_PATH" AssetData property when saving a j3o file another time git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10229 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
b9de3a2eb1
commit
2bbf679c17
@ -128,8 +128,10 @@ 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) {
|
||||||
|
if (properties.getProperty("ORIGINAL_PATH") == null) {
|
||||||
properties.setProperty("ORIGINAL_PATH", mgr.getRelativeAssetPath(outFile.getPath()));
|
properties.setProperty("ORIGINAL_PATH", mgr.getRelativeAssetPath(outFile.getPath()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Exceptions.printStackTrace(ex);
|
Exceptions.printStackTrace(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user