Ver Fonte

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

trethaller há 7 anos atrás
pai
commit
4be4ce8762
1 ficheiros alterados com 1 adições e 1 exclusões
  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;