- fix SceneExplorer OptimizeGeometry entry

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7215 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent dd749a699b
commit eef7e8299b
  1. 8
      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; package com.jme3.gde.core.sceneexplorer.nodes.actions.impl;
import com.jme3.gde.core.sceneexplorer.nodes.AbstractSceneExplorerNode; 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.AbstractToolAction;
import com.jme3.gde.core.sceneexplorer.nodes.actions.ToolAction; import com.jme3.gde.core.sceneexplorer.nodes.actions.ToolAction;
import com.jme3.scene.Spatial; import com.jme3.scene.Node;
import jme3tools.optimize.GeometryBatchFactory; import jme3tools.optimize.GeometryBatchFactory;
/** /**
@ -51,7 +51,7 @@ public class OptimizeGeometry extends AbstractToolAction {
@Override @Override
protected Object doApplyTool(AbstractSceneExplorerNode rootNode) { protected Object doApplyTool(AbstractSceneExplorerNode rootNode) {
Spatial geom = rootNode.getLookup().lookup(Spatial.class); Node geom = rootNode.getLookup().lookup(Node.class);
GeometryBatchFactory.optimize(geom); GeometryBatchFactory.optimize(geom);
return null; return null;
} }
@ -63,7 +63,7 @@ public class OptimizeGeometry extends AbstractToolAction {
} }
public Class<?> getNodeClass() { public Class<?> getNodeClass() {
return JmeSpatial.class; return JmeNode.class;
} }
} }

Loading…
Cancel
Save