Browse Source

Update SplineMesh

ShiroSmith 6 năm trước cách đây
mục cha
commit
d195c4f9f5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 			meshBatch = null;
 		}
 		}
 
 
-		if( meshPrimitive == null ) 
+		if( meshPrimitive == null || (meshBatch != null && meshBatch.primitive == meshPrimitive) ) 
 			return;
 			return;
 
 
 		if( meshBatch == null ) {
 		if( meshBatch == null ) {