SDK:
- fix Model Importer AssetKey check git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10180 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2a77175db8
commit
458c623f57
@ -143,8 +143,8 @@ public final class ImportModel implements ActionListener {
|
||||
if (fileObj != null) {
|
||||
DataObject obj = DataObject.find(fileObj);
|
||||
AssetData data = obj.getLookup().lookup(AssetData.class);
|
||||
AssetKey assetKey = data.getAssetKey();
|
||||
if (data != null) {
|
||||
AssetKey assetKey = data.getAssetKey();
|
||||
if (obj instanceof SpatialAssetDataObject) {
|
||||
// Delete models that are not J3O.
|
||||
if (!(obj instanceof BinaryModelDataObject)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user