Browse Source

Minor fix

ShiroSmith 4 years ago
parent
commit
3bc340874d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      h3d/scene/MeshBatch.hx

+ 4 - 0
h3d/scene/MeshBatch.hx

@@ -110,6 +110,10 @@ class MeshBatch extends Mesh {
 							batchShaders = cur.next;
 						cur = cur.next;
 					}
+					else {
+						prev = cur;
+						cur = cur.next;
+					}
 				}
 				else {
 					prev = cur;