- fix palette item mixup

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9133 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent be7ebbc5f3
commit 06de64654e
  1. 6
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteSetJ3M.java
  2. 6
      sdk/jme3-codepalette/src/com/jme3/gde/codepalette/scene/JmePaletteWireframe.java

@ -40,14 +40,14 @@ import org.openide.text.ActiveEditorDrop;
* *
* @author normenhansen, zathras * @author normenhansen, zathras
*/ */
public class JmePaletteWireframe implements ActiveEditorDrop { public class JmePaletteSetJ3M implements ActiveEditorDrop {
public JmePaletteWireframe() { public JmePaletteSetJ3M() {
} }
private String createBody() { private String createBody() {
String body = "mat.getAdditionalRenderState().setWireframe(true);\n"; String body = "Material mat = assetManager.loadMaterial(\"Common/Materials/RedColor.j3m\");\n";
return body; return body;
} }

@ -40,14 +40,14 @@ import org.openide.text.ActiveEditorDrop;
* *
* @author normenhansen, zathras * @author normenhansen, zathras
*/ */
public class JmePaletteSetJ3M implements ActiveEditorDrop { public class JmePaletteWireframe implements ActiveEditorDrop {
public JmePaletteSetJ3M() { public JmePaletteWireframe() {
} }
private String createBody() { private String createBody() {
String body = "Material mat = assetManager.loadMaterial(\"Common/Materials/RedColor.j3m\");\n"; String body = "mat.getAdditionalRenderState().setWireframe(true);\n";
return body; return body;
} }

Loading…
Cancel
Save