Browse Source

Do not split submeshes into own vertex buffers (if more than 65535 vertices) when original mesh uses shared geometry.

Lasse Öörni 13 years ago
parent
commit
3fd5129304
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tools/OgreImporter/OgreImporter.cpp

+ 1 - 1
Tools/OgreImporter/OgreImporter.cpp

@@ -277,7 +277,7 @@ void LoadMesh(const String& inputFileName, bool generateTangents, bool splitSubM
             maxSubMeshVertices = vertices;
     }
     
-    if (splitSubMeshes || (totalVertices > 65535 && maxSubMeshVertices <= 65535))
+    if (!sharedGeometry && (splitSubMeshes || (totalVertices > 65535 && maxSubMeshVertices <= 65535)))
     {
         useOneBuffer_ = false;
         vertexBuffers_.Resize(numSubMeshes_);