- fix in ModelImportTool project selection

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9830 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 50833d51aa
commit c6ac2b8dcd
  1. 4
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java

@ -63,15 +63,13 @@ public final class ImportModel implements ActionListener {
} }
public void actionPerformed(ActionEvent ev) { public void actionPerformed(ActionEvent ev) {
if (context == null) { Project context = OpenProjects.getDefault().getMainProject();
this.context = OpenProjects.getDefault().getMainProject();
if (context == null) { if (context == null) {
context = ProjectSelection.showProjectSelection(); context = ProjectSelection.showProjectSelection();
} }
if (context == null) { if (context == null) {
return; return;
} }
}
if (context.getLookup().lookup(ProjectAssetManager.class) == null) { if (context.getLookup().lookup(ProjectAssetManager.class) == null) {
return; return;
} }

Loading…
Cancel
Save