From eef7e8299b97ae0b70d69cfeec06991c50e0d975 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 7 Apr 2011 12:07:19 +0000 Subject: [PATCH] - fix SceneExplorer OptimizeGeometry entry git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7215 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../nodes/actions/impl/OptimizeGeometry.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/OptimizeGeometry.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/OptimizeGeometry.java index 003546a03..146240ef4 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/OptimizeGeometry.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/OptimizeGeometry.java @@ -32,10 +32,10 @@ package com.jme3.gde.core.sceneexplorer.nodes.actions.impl; import com.jme3.gde.core.sceneexplorer.nodes.AbstractSceneExplorerNode; -import com.jme3.gde.core.sceneexplorer.nodes.JmeSpatial; +import com.jme3.gde.core.sceneexplorer.nodes.JmeNode; import com.jme3.gde.core.sceneexplorer.nodes.actions.AbstractToolAction; import com.jme3.gde.core.sceneexplorer.nodes.actions.ToolAction; -import com.jme3.scene.Spatial; +import com.jme3.scene.Node; import jme3tools.optimize.GeometryBatchFactory; /** @@ -51,7 +51,7 @@ public class OptimizeGeometry extends AbstractToolAction { @Override protected Object doApplyTool(AbstractSceneExplorerNode rootNode) { - Spatial geom = rootNode.getLookup().lookup(Spatial.class); + Node geom = rootNode.getLookup().lookup(Node.class); GeometryBatchFactory.optimize(geom); return null; } @@ -63,7 +63,7 @@ public class OptimizeGeometry extends AbstractToolAction { } public Class getNodeClass() { - return JmeSpatial.class; + return JmeNode.class; } }