* 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
3.0
Sha..rd 13 years ago
parent 0a38ca0cf4
commit 38ff6f7560
  1. 4
      engine/src/core/com/jme3/material/Technique.java

@ -122,10 +122,10 @@ public class Technique /* implements Savable */ {
if (value == null) { if (value == null) {
// Clear the define. // Clear the define.
needReload = defines.remove(defineName); needReload = defines.remove(defineName) || needReload;
} else { } else {
// Set the define. // Set the define.
needReload = defines.set(defineName, type, value); needReload = defines.set(defineName, type, value) || needReload;
} }
} }
} }

Loading…
Cancel
Save