ソースを参照

Fix hasOffset method in MeshBatch.hx

clementlandrin 5 ヶ月 前
コミット
7e0db6b369
1 ファイル変更1 行追加1 行削除
  1. 1 1
      h3d/scene/MeshBatch.hx

+ 1 - 1
h3d/scene/MeshBatch.hx

@@ -83,7 +83,7 @@ class MeshBatch extends MultiMaterial {
 		meshBatchFlags.set(EnableStorageBuffer);
 		meshBatchFlags.set(EnableStorageBuffer);
 	}
 	}
 
 
-	function hasOffset() return primitiveSubPart != null;
+	function hasOffset() return primitiveSubBytes != null;
 	function getPrimitive() return @:privateAccess instanced.primitive;
 	function getPrimitive() return @:privateAccess instanced.primitive;
 	function storageBufferEnabled() return meshBatchFlags.has(EnableStorageBuffer);
 	function storageBufferEnabled() return meshBatchFlags.has(EnableStorageBuffer);
 	function gpuUpdateEnabled() return meshBatchFlags.has(EnableGpuUpdate);
 	function gpuUpdateEnabled() return meshBatchFlags.has(EnableGpuUpdate);