Browse Source

added rebuild()

ncannasse 8 years ago
parent
commit
d049749c67
1 changed files with 4 additions and 0 deletions
  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;