- use only SDK api for model loading in model import tool

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8382 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-10-10 22:41:20 +00:00
parent e2df0e4b36
commit 7e9f4b51b6

View File

@ -100,13 +100,14 @@ public final class ModelImporterVisualPanel1 extends JPanel implements AssetEven
if (data != null) {
((AssetDataObject) obj).getLookupContents().add(manager);
mainKey = data.getAssetKey();
currentModel = (Spatial)data.loadAsset();
}
} catch (DataObjectNotFoundException ex) {
Exceptions.printStackTrace(ex);
mainKey = new ModelKey(path.getName());
}
}
currentModel = (Spatial) manager.loadAsset(mainKey);
// currentModel = (Spatial) manager.loadAsset(mainKey);
if (currentModel != null) {
offPanel.attach(currentModel);
updateProperties(mainKey);