- 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:
parent
e2df0e4b36
commit
7e9f4b51b6
@ -100,13 +100,14 @@ public final class ModelImporterVisualPanel1 extends JPanel implements AssetEven
|
|||||||
if (data != null) {
|
if (data != null) {
|
||||||
((AssetDataObject) obj).getLookupContents().add(manager);
|
((AssetDataObject) obj).getLookupContents().add(manager);
|
||||||
mainKey = data.getAssetKey();
|
mainKey = data.getAssetKey();
|
||||||
|
currentModel = (Spatial)data.loadAsset();
|
||||||
}
|
}
|
||||||
} catch (DataObjectNotFoundException ex) {
|
} catch (DataObjectNotFoundException ex) {
|
||||||
Exceptions.printStackTrace(ex);
|
Exceptions.printStackTrace(ex);
|
||||||
mainKey = new ModelKey(path.getName());
|
mainKey = new ModelKey(path.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
currentModel = (Spatial) manager.loadAsset(mainKey);
|
// currentModel = (Spatial) manager.loadAsset(mainKey);
|
||||||
if (currentModel != null) {
|
if (currentModel != null) {
|
||||||
offPanel.attach(currentModel);
|
offPanel.attach(currentModel);
|
||||||
updateProperties(mainKey);
|
updateProperties(mainKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user