From 7e9f4b51b6d2e02c8fbe0aada9406255f5ec0adc Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 10 Oct 2011 22:41:20 +0000 Subject: [PATCH] - 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 --- .../com/jme3/gde/modelimporter/ModelImporterVisualPanel1.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ModelImporterVisualPanel1.java b/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ModelImporterVisualPanel1.java index 4ca3bb1e5..5d5231f10 100644 --- a/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ModelImporterVisualPanel1.java +++ b/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);