Sfoglia il codice sorgente

SDK:
- don't try to import models to projects without ProjectAssetManager.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9813 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

nor..67 13 anni fa
parent
commit
cbe90a6de3

+ 3 - 0
jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java

@@ -72,6 +72,9 @@ public final class ImportModel implements ActionListener {
                 return;
             }
         }
+        if (context.getLookup().lookup(ProjectAssetManager.class) == null) {
+            return;
+        }
         final WizardDescriptor wiz = new WizardDescriptor(getPanels());
         // {0} will be replaced by WizardDesriptor.Panel.getComponent().getName()
         wiz.setTitleFormat(new MessageFormat("{0}"));