From 38ff6f7560d533d5f21df1d5bed550cdad8e4bd4 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Sun, 5 Aug 2012 22:00:48 +0000 Subject: [PATCH] * Fixed issue where setting an unset define then setting an already set define would cause the unset define to not be updated in the shader git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9623 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/material/Technique.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } }