diff --git a/engine/src/core/com/jme3/material/Material.java b/engine/src/core/com/jme3/material/Material.java index 4e8bb0abf..fa488b8d9 100644 --- a/engine/src/core/com/jme3/material/Material.java +++ b/engine/src/core/com/jme3/material/Material.java @@ -1120,7 +1120,7 @@ public class Material implements Asset, Cloneable, Savable, Comparable } } } - if (guessRenderStateApply){ + if (guessRenderStateApply && additionalState != null){ // Try to guess values of "apply" render state based on defaults // if value != default then set apply to true additionalState.applyPolyOffset = additionalState.offsetEnabled;