Explorar o código

Merge branch 'master' of https://github.com/HeapsIO/heaps

TothBenoit hai 1 ano
pai
achega
7afb32d065
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/mat/Material.hx

+ 1 - 1
h3d/mat/Material.hx

@@ -124,7 +124,7 @@ class Material extends BaseMaterial {
 			m.textureShader.killAlpha = textureShader.killAlpha;
 			m.textureShader.killAlphaThreshold = textureShader.killAlphaThreshold;
 		}
-		m.color = color;
+		m.color = color.clone();
 		m.blendMode = blendMode;
 		return m;
 	}