浏览代码

added rebuild()

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

+ 4 - 0
h3d/parts/GpuParticles.hx

@@ -527,6 +527,10 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 		return volumeBounds = v;
 	}
 
+	public function rebuild() {
+		for( g in groups ) g.needRebuild = true;
+	}
+
 	public function removeGroup( g : GpuPartGroup ) {
 		var idx = groups.indexOf(g);
 		if( idx < 0 ) return;