ソースを参照

More informative error message if submesh bone limit exceeded.

Lasse Öörni 11 年 前
コミット
52762aee5e
1 ファイル変更6 行追加1 行削除
  1. 6 1
      Source/Tools/AssetImporter/AssetImporter.cpp

+ 6 - 1
Source/Tools/AssetImporter/AssetImporter.cpp

@@ -1866,7 +1866,12 @@ void GetBlendData(OutModel& model, aiMesh* mesh, PODVector<unsigned>& boneMappin
     if (model.bones_.Size() > MAX_SKIN_MATRICES)
     {
         if (mesh->mNumBones > MAX_SKIN_MATRICES)
-            ErrorExit("Geometry has too many bone influences");
+        {
+            ErrorExit(
+                "Geometry (submesh) has over 64 bone influences. Try splitting to more submeshes\n"
+                "that each stay at 64 bones or below."
+            );
+        }
         boneMappings.Resize(mesh->mNumBones);
         for (unsigned i = 0; i < mesh->mNumBones; ++i)
         {