diff --git a/engine/src/core/com/jme3/material/Material.java b/engine/src/core/com/jme3/material/Material.java index 4a34424e8..987e8d9f1 100644 --- a/engine/src/core/com/jme3/material/Material.java +++ b/engine/src/core/com/jme3/material/Material.java @@ -1031,7 +1031,7 @@ public class Material implements Cloneable, Savable, Comparable { defName = "Common/MatDefs/Misc/Unshaded.j3md"; }else if (defName.equalsIgnoreCase("Common/MatDefs/Misc/WireColor.j3md")){ // Using WireColor, set wireframe renderstate = true and use Unshaded - additionalState.setWireframe(true); + getAdditionalRenderState().setWireframe(true); defName = "Common/MatDefs/Misc/Unshaded.j3md"; }else if (defName.equalsIgnoreCase("Common/MatDefs/Misc/Unshaded.j3md")){ // Uses unshaded, ensure that the proper param is set