浏览代码

reset color when allocating particle

ncannasse 10 年之前
父节点
当前提交
86a9bfce78
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/parts/Particles.hx

+ 1 - 0
h3d/parts/Particles.hx

@@ -84,6 +84,7 @@ class Particles extends h3d.scene.Mesh {
 		p.rotation = 0;
 		p.ratio = 1;
 		p.size = 1;
+		p.r = p.g = p.b = p.a = 1;
 		return p;
 	}