Browse Source

Output warning in AssetImporter when model has bones and consists of many submeshes, some of which don't have skinning information.

Lasse Öörni 9 years ago
parent
commit
2e96545687
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/Tools/AssetImporter/AssetImporter.cpp

+ 3 - 0
Source/Tools/AssetImporter/AssetImporter.cpp

@@ -928,6 +928,9 @@ void BuildAndSaveModel(OutModel& model)
         PrintLine("Writing geometry " + String(i) + " with " + String(mesh->mNumVertices) + " vertices " +
             String(validFaces * 3) + " indices");
 
+        if (model.bones_.Size() > 0 && !mesh->HasBones())
+            PrintLine("Warning: model has bones but geometry " + String(i) + " has no skinning information");
+
         unsigned char* vertexData = vb->GetShadowData();
         unsigned char* indexData = ib->GetShadowData();