mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Fixed #311
This commit is contained in:
parent
bfaa207853
commit
7dbc2ff95d
@ -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;
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user