2
0
Эх сурвалжийг харах

add getGroup(name:String)

bstouls 9 жил өмнө
parent
commit
bcbbe54c84

+ 7 - 0
h3d/parts/GpuParticles.hx

@@ -315,6 +315,13 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 		if( materials.length == 0 ) material = null;
 	}
 
+	public function getGroup( name : String ) {
+		for( g in groups )
+			if( g.name == name )
+				return g;
+		return null;
+	}
+
 	public inline function getGroups() {
 		return groups.iterator();
 	}