diff --git a/AssetStudioFBX/AssetStudioFBXExporter.cpp b/AssetStudioFBX/AssetStudioFBXExporter.cpp index 55d752b..c272748 100644 --- a/AssetStudioFBX/AssetStudioFBXExporter.cpp +++ b/AssetStudioFBX/AssetStudioFBXExporter.cpp @@ -552,7 +552,7 @@ namespace AssetStudio lGeometryElementTangent->GetDirectArray().Add(FbxVector4(tangent.X, tangent.Y, tangent.Z, -tangent.W)); } - if (hasBones) + if (hasBones && vertex->BoneIndices != nullptr) { array^ boneIndices = vertex->BoneIndices; array^ weights4 = vertex->Weights; diff --git a/AssetStudioGUI/Studio.cs b/AssetStudioGUI/Studio.cs index f10c593..95e7f87 100644 --- a/AssetStudioGUI/Studio.cs +++ b/AssetStudioGUI/Studio.cs @@ -509,7 +509,7 @@ namespace AssetStudioGUI } catch (Exception ex) { - MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}"); + MessageBox.Show($"Export GameObject:{j.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}"); } Progress.Report(++k, count); @@ -541,7 +541,7 @@ namespace AssetStudioGUI } catch (Exception ex) { - MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}"); + MessageBox.Show($"Export Animator:{animator.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}"); Logger.Info("Error in export"); } }); @@ -568,7 +568,7 @@ namespace AssetStudioGUI } catch (Exception ex) { - MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}"); + MessageBox.Show($"Export GameObject:{gameObject.m_Name} error\r\n{ex.Message}\r\n{ex.StackTrace}"); Logger.Info("Error in export"); }