From a5d00fd00332a6265ecfde87f3f4a4e4e7db5148 Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Sat, 16 Jul 2011 17:14:47 +0000 Subject: [PATCH] * Fixed NullPointerException when loading old materials that used wireframe.j3md git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7865 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/material/Material.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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