Bläddra i källkod

World: Fix broken index buffers when using multiple materials per object

trethaller 7 år sedan
förälder
incheckning
4be4ce8762
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      h3d/scene/World.hx

+ 1 - 1
h3d/scene/World.hx

@@ -384,7 +384,7 @@ class World extends Object {
 				}
 
 				for( i in 0...m.indexCount )
-					model.idx.push(data.indexes[i] + startIndex);
+					model.idx.push(data.indexes[i] + startVertex);
 
 				startVertex += m.vertexCount;
 				startIndex += m.indexCount;