From 102257be93afb5d44df2e6fe6efef4ba900c0ad5 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 10 Nov 2011 03:10:13 +0000 Subject: [PATCH] SDK: - fix SelectTool not updating selection mesh git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8634 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/scenecomposer/tools/SelectTool.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/SelectTool.java b/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/SelectTool.java index 45d65a805..c84a84317 100644 --- a/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/SelectTool.java +++ b/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/SelectTool.java @@ -4,9 +4,9 @@ */ package com.jme3.gde.scenecomposer.tools; -import com.jme3.gde.core.scene.SceneApplication; import com.jme3.gde.core.sceneexplorer.SceneExplorerTopComponent; import com.jme3.gde.core.sceneexplorer.nodes.JmeNode; +import com.jme3.gde.core.sceneviewer.SceneViewerTopComponent; import com.jme3.gde.scenecomposer.SceneEditTool; import com.jme3.math.Vector2f; import com.jme3.math.Vector3f; @@ -33,11 +33,11 @@ public class SelectTool extends SceneEditTool { public void run() { if (result != null) { // System.out.println(rootNode.getChild(result).getName()); -// SceneExplorerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode.getChild(result)}); + SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode.getChild(result)}); SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode.getChild(result)); } else { - // SceneExplorerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode}); + SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode}); SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode); } }