- fix in ModelImportTool project selection

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9830 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2012-10-03 15:35:23 +00:00
parent 50833d51aa
commit c6ac2b8dcd

View File

@ -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;
} }