浏览代码

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;
 			}