浏览代码

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

trethaller 7 年之前
父节点
当前提交
4be4ce8762
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;