- fix SelectTool not updating selection mesh

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8634 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 574259d5aa
commit 102257be93
  1. 6
      sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/SelectTool.java

@ -4,9 +4,9 @@
*/ */
package com.jme3.gde.scenecomposer.tools; 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.SceneExplorerTopComponent;
import com.jme3.gde.core.sceneexplorer.nodes.JmeNode; import com.jme3.gde.core.sceneexplorer.nodes.JmeNode;
import com.jme3.gde.core.sceneviewer.SceneViewerTopComponent;
import com.jme3.gde.scenecomposer.SceneEditTool; import com.jme3.gde.scenecomposer.SceneEditTool;
import com.jme3.math.Vector2f; import com.jme3.math.Vector2f;
import com.jme3.math.Vector3f; import com.jme3.math.Vector3f;
@ -33,11 +33,11 @@ public class SelectTool extends SceneEditTool {
public void run() { public void run() {
if (result != null) { if (result != null) {
// System.out.println(rootNode.getChild(result).getName()); // 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)); SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode.getChild(result));
} else { } else {
// SceneExplorerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode}); SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode});
SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode); SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode);
} }
} }

Loading…
Cancel
Save