Skip to content

Commit b6e521d

Browse files
committed
exit if export is cancelled in ExportAnimatedBones
1 parent 46ab2f1 commit b6e521d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExporter.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,11 @@ internal int ExportAnimationOnly(
26672667

26682668
// first export all the animated bones that are in the export set
26692669
// as only a subset of bones are exported, but we still need to make sure the bone transforms are correct
2670-
ExportAnimatedBones(unityGO, fbxScene, ref numObjectsExported, objectCount, exportData);
2670+
if(!ExportAnimatedBones(unityGO, fbxScene, ref numObjectsExported, objectCount, exportData))
2671+
{
2672+
// export cancelled
2673+
return -1;
2674+
}
26712675

26722676
// export everything else and make sure all nodes are connected
26732677
foreach (var go in exportSet) {

0 commit comments

Comments
 (0)