Browse Source

- 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
nor..67 14 years ago
parent
commit
9fab42769c

+ 2 - 1
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);