- 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:
parent
50833d51aa
commit
c6ac2b8dcd
@ -63,15 +63,13 @@ public final class ImportModel implements ActionListener {
|
||||
}
|
||||
|
||||
public void actionPerformed(ActionEvent ev) {
|
||||
if (context == null) {
|
||||
this.context = OpenProjects.getDefault().getMainProject();
|
||||
Project context = OpenProjects.getDefault().getMainProject();
|
||||
if (context == null) {
|
||||
context = ProjectSelection.showProjectSelection();
|
||||
}
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (context.getLookup().lookup(ProjectAssetManager.class) == null) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user