|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|