diff --git a/engine/src/core/com/jme3/material/Technique.java b/engine/src/core/com/jme3/material/Technique.java index c833fd3c9..80e8faf3c 100644 --- a/engine/src/core/com/jme3/material/Technique.java +++ b/engine/src/core/com/jme3/material/Technique.java @@ -122,10 +122,10 @@ public class Technique /* implements Savable */ { if (value == null) { // Clear the define. - needReload = defines.remove(defineName); + needReload = defines.remove(defineName) || needReload; } else { // Set the define. - needReload = defines.set(defineName, type, value); + needReload = defines.set(defineName, type, value) || needReload; } } }