- 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
3.0
nor..67 13 years ago
parent e2df0e4b36
commit 7e9f4b51b6
  1. 3
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ModelImporterVisualPanel1.java

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

Loading…
Cancel
Save