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

Loading…
Cancel
Save