Skip to content

Commit 4f24702

Browse files
committed
set the scaling inheritance to RSrs
to match Unity and Maya's scaling inheritance
1 parent 5529da0 commit 4f24702

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,10 @@ protected int ExportComponents (
943943
return -1;
944944
}
945945

946+
// Default inheritance type is RrSs, which causes scaling issues in Maya.
947+
// Use RSrs as the scaling inhertiance instead.
948+
fbxNode.SetTransformationInheritType (FbxTransform.EInheritType.eInheritRSrs);
949+
946950
fbxNode.SetVisibility (unityGo.activeSelf);
947951

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

0 commit comments

Comments
 (0)