Przeglądaj źródła

add getGroup(name:String)

bstouls 9 lat temu
rodzic
commit
bcbbe54c84
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      h3d/parts/GpuParticles.hx

+ 7 - 0
h3d/parts/GpuParticles.hx

@@ -315,6 +315,13 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 		if( materials.length == 0 ) material = null;
 		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() {
 	public inline function getGroups() {
 		return groups.iterator();
 		return groups.iterator();
 	}
 	}