- 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
3.0
nor..67 12 years ago
parent 8349783b6f
commit 5e4fc894e6
  1. 3
      sdk/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}"));

Loading…
Cancel
Save