瀏覽代碼

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

TothBenoit 1 年之前
父節點
當前提交
7afb32d065
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 	}