This commit is contained in:
Perfare 2018-11-21 16:13:32 +08:00
parent bfaa207853
commit 7dbc2ff95d
2 changed files with 4 additions and 4 deletions

View File

@ -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<unsigned char>^ boneIndices = vertex->BoneIndices;
array<float>^ weights4 = vertex->Weights;

View File

@ -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");
}