فهرست منبع

fix build error with haxe 4.0

Nicolas Cannasse 4 سال پیش
والد
کامیت
1d6bfe5c25
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      hrt/prefab/Object3D.hx

+ 1 - 1
hrt/prefab/Object3D.hx

@@ -183,7 +183,7 @@ class Object3D extends Prefab {
 			if( mesh.primitive == null ) continue;
 			visibleMeshes.push(mesh);
 
-			if( Std.isOfType(mesh, h3d.scene.Skin) ) {
+			if( Std.downcast(mesh, h3d.scene.Skin) != null ) {
 				hasSkin = true;
 				continue;
 			}