From c6ac2b8dcd3e63a683251da7ec08cb6d56f00462 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 3 Oct 2012 15:35:23 +0000 Subject: [PATCH] - fix in ModelImportTool project selection git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9830 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/modelimporter/ImportModel.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java b/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java index a28820785..a4d4c75db 100644 --- a/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java +++ b/sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java @@ -63,14 +63,12 @@ public final class ImportModel implements ActionListener { } public void actionPerformed(ActionEvent ev) { + Project context = OpenProjects.getDefault().getMainProject(); if (context == null) { - this.context = OpenProjects.getDefault().getMainProject(); - if (context == null) { - context = ProjectSelection.showProjectSelection(); - } - if (context == null) { - return; - } + context = ProjectSelection.showProjectSelection(); + } + if (context == null) { + return; } if (context.getLookup().lookup(ProjectAssetManager.class) == null) { return;