|
|
@ -143,8 +143,8 @@ public final class ImportModel implements ActionListener { |
|
|
|
if (fileObj != null) { |
|
|
|
if (fileObj != null) { |
|
|
|
DataObject obj = DataObject.find(fileObj); |
|
|
|
DataObject obj = DataObject.find(fileObj); |
|
|
|
AssetData data = obj.getLookup().lookup(AssetData.class); |
|
|
|
AssetData data = obj.getLookup().lookup(AssetData.class); |
|
|
|
AssetKey assetKey = data.getAssetKey(); |
|
|
|
|
|
|
|
if (data != null) { |
|
|
|
if (data != null) { |
|
|
|
|
|
|
|
AssetKey assetKey = data.getAssetKey(); |
|
|
|
if (obj instanceof SpatialAssetDataObject) { |
|
|
|
if (obj instanceof SpatialAssetDataObject) { |
|
|
|
// Delete models that are not J3O.
|
|
|
|
// Delete models that are not J3O.
|
|
|
|
if (!(obj instanceof BinaryModelDataObject)) { |
|
|
|
if (!(obj instanceof BinaryModelDataObject)) { |
|
|
|