Browse Source

Fix hasOffset method in MeshBatch.hx

clementlandrin 5 months ago
parent
commit
7e0db6b369
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/scene/MeshBatch.hx

+ 1 - 1
h3d/scene/MeshBatch.hx

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