浏览代码

Update SplineMesh

ShiroSmith 6 年之前
父节点
当前提交
d195c4f9f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/l3d/SplineMesh.hx

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

@@ -186,7 +186,7 @@ class SplineMesh extends Spline {
 			meshBatch = null;
 		}
 
-		if( meshPrimitive == null ) 
+		if( meshPrimitive == null || (meshBatch != null && meshBatch.primitive == meshPrimitive) ) 
 			return;
 
 		if( meshBatch == null ) {