Explorar el Código

GetMeshByName

Fl0xer hace 8 años
padre
commit
2bd62cc98c
Se han modificado 1 ficheros con 4 adiciones y 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;