Skip to content

Commit 04f936a

Browse files
authored
Merge pull request #239 from Unity-Technologies/UNI-31678-maya-incorrect-scaling
Uni 31678 fix incorrect scaling in Maya
2 parents 4fffb44 + 3d949be commit 04f936a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,13 @@ protected int ExportComponents (
948948
return -1;
949949
}
950950

951+
// Default inheritance type in FBX is RrSs, which causes scaling issues in Maya as
952+
// both Maya and Unity use RSrs inheritance by default.
953+
// Note: MotionBuilder uses RrSs inheritance by default as well, though it is possible
954+
// to select a different inheritance type in the UI.
955+
// Use RSrs as the scaling inhertiance instead.
956+
fbxNode.SetTransformationInheritType (FbxTransform.EInheritType.eInheritRSrs);
957+
951958
fbxNode.SetVisibility (unityGo.activeSelf);
952959

953960
ExportTransform ( unityGo.transform, fbxNode, newCenter, exportType);

0 commit comments

Comments
 (0)