소스 검색

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;
 	}