浏览代码

Meshspray: fix .toMesh()

Tom SPIRA 5 年之前
父节点
当前提交
1925784eb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/l3d/MeshSpray.hx

+ 1 - 1
hrt/prefab/l3d/MeshSpray.hx

@@ -62,7 +62,7 @@ class MeshSprayObject extends h3d.scene.Object {
 			for( c in children ) {
 				c.culled = false;
 				if( c.alwaysSync ) continue;
-				var m = c.toMesh();
+				var m = Std.downcast(c, h3d.scene.Mesh);
 				if( m == null ) continue;
 				var prim = Std.downcast(m.primitive, h3d.prim.MeshPrimitive);
 				if( prim == null ) continue;