瀏覽代碼

Fix prev commit

Panagiotis Christopoulos Charitos 13 年之前
父節點
當前提交
06031b3555
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      include/anki/resource/Mesh.h

+ 2 - 1
include/anki/resource/Mesh.h

@@ -55,7 +55,8 @@ public:
 
 	U32 getIndicesCount() const
 	{
-		return meshProtected.indicesCount;
+		ANKI_ASSERT(meshProtected.subMeshes.size() > 0);
+		return meshProtected.subMeshes[0].indicesCount;
 	}
 
 	const Obb& getBoundingShape() const