Merge pull request #716 from JavaSaBr/fixed_problem_with_clonning_shader_info

Missed one collection
fix-456
empirephoenix 7 years ago committed by GitHub
commit 0bc6c64311
  1. 3
      jme3-core/src/main/java/com/jme3/material/ShaderGenerationInfo.java

@ -196,7 +196,7 @@ public class ShaderGenerationInfo implements Savable, Cloneable {
clone.fragmentUniforms = new ArrayList<>();
clone.fragmentGlobals = new ArrayList<>();
clone.unusedNodes = new ArrayList<>();
clone.varyings = new ArrayList<>();
for (ShaderNodeVariable attribute : attributes) {
clone.attributes.add(attribute.clone());
@ -208,7 +208,6 @@ public class ShaderGenerationInfo implements Savable, Cloneable {
clone.vertexGlobal = vertexGlobal.clone();
for (ShaderNodeVariable varying : varyings) {
clone.varyings.add(varying.clone());
}

Loading…
Cancel
Save