From 5e4fc894e67abec7e53ef48486868b2599606e22 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 3 Oct 2012 01:31:17 +0000 Subject: [PATCH] SDK: - don't try to import models to projects without ProjectAssetManager. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9813 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/modelimporter/ImportModel.java | 3 +++ 1 file changed, 3 insertions(+) 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 f28a3c1ab..a28820785 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 @@ -72,6 +72,9 @@ public final class ImportModel implements ActionListener { return; } } + if (context.getLookup().lookup(ProjectAssetManager.class) == null) { + return; + } final WizardDescriptor wiz = new WizardDescriptor(getPanels()); // {0} will be replaced by WizardDesriptor.Panel.getComponent().getName() wiz.setTitleFormat(new MessageFormat("{0}"));