fixed NPE during loading shader node material without vertex nodes.

empirephoenix-patch-1
javasabr 7 years ago committed by Rémy Bouquet
parent 9100cff4aa
commit a717a5e50f
  1. 2
      jme3-core/src/main/java/com/jme3/material/ShaderGenerationInfo.java

@ -206,7 +206,9 @@ public class ShaderGenerationInfo implements Savable, Cloneable {
clone.vertexUniforms.add(uniform.clone());
}
if (vertexGlobal != null) {
clone.vertexGlobal = vertexGlobal.clone();
}
for (ShaderNodeVariable varying : varyings) {
clone.varyings.add(varying.clone());

Loading…
Cancel
Save