From 4a2db486b172110da4d8776cfffee9d6608a1f0d Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 13 Feb 2013 15:41:01 +0000 Subject: [PATCH] SDK: - fix add model to scenecomposer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10395 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/scenecomposer/SceneEditorController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneEditorController.java b/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneEditorController.java index d65794537..dfbad184c 100644 --- a/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneEditorController.java +++ b/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneEditorController.java @@ -578,9 +578,10 @@ public class SceneEditorController implements PropertyChangeListener, NodeListen selected.worldToLocal(location, localVec); linkNode.setLocalTranslation(localVec); } + addSpatialUndo(selected, linkNode, null, jmeRootNode); } + file.closeAsset(); refreshSelected(); - addSpatialUndo(selected, linkNode, null, jmeRootNode); } catch (Exception ex) { Confirmation msg = new NotifyDescriptor.Confirmation( "Error importing " + file.getName() + "\n" + ex.toString(),