- 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,14 +63,12 @@ public final class ImportModel implements ActionListener {
} }
public void actionPerformed(ActionEvent ev) { public void actionPerformed(ActionEvent ev) {
Project context = OpenProjects.getDefault().getMainProject();
if (context == null) { if (context == null) {
this.context = OpenProjects.getDefault().getMainProject(); context = ProjectSelection.showProjectSelection();
if (context == null) { }
context = ProjectSelection.showProjectSelection(); if (context == null) {
} return;
if (context == null) {
return;
}
} }
if (context.getLookup().lookup(ProjectAssetManager.class) == null) { if (context.getLookup().lookup(ProjectAssetManager.class) == null) {
return; return;