Explorar o código

GetMeshByName

Fl0xer %!s(int64=8) %!d(string=hai) anos
pai
achega
2bd62cc98c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      h3d/scene/Object.hx

+ 4 - 0
h3d/scene/Object.hx

@@ -261,6 +261,10 @@ class Object implements h3d.impl.Serializable {
 		return out;
 	}
 
+	public function getMeshByName( name : String) {
+		return Std.instance(getObjectByName(name), Mesh);
+	}
+
 	public function getObjectByName( name : String ) {
 		if( this.name == name )
 			return this;