MPO: add null override list check

experimental^2^2
Kirill Vainer 9 years ago
parent 5588e859cb
commit 21e63687cf
  1. 2
      jme3-core/src/main/java/com/jme3/material/Technique.java

@ -128,6 +128,7 @@ public final class Technique {
dynamicDefines.clear(); dynamicDefines.clear();
dynamicDefines.setAll(paramDefines); dynamicDefines.setAll(paramDefines);
if (overrides != null) {
for (MatParamOverride override : overrides) { for (MatParamOverride override : overrides) {
if (!override.isEnabled()) { if (!override.isEnabled()) {
continue; continue;
@ -139,6 +140,7 @@ public final class Technique {
} }
} }
} }
}
return logic.makeCurrent(assetManager, renderManager, rendererCaps, lights, dynamicDefines); return logic.makeCurrent(assetManager, renderManager, rendererCaps, lights, dynamicDefines);
} }

Loading…
Cancel
Save