Skip to content

Commit 6310a45

Browse files
committed
fix incorrect transform on export
issue is caused by trying to find the center of a single object, where the pivot is not the same as the center.
1 parent d25b55e commit 6310a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,7 @@ public int ExportAll (
28132813

28142814
Vector3 center = Vector3.zero;
28152815
if(exportType == TransformExportType.Global){
2816-
center = ExportSettings.centerObjects? FindCenter(revisedExportSet) : Vector3.zero;
2816+
center = (ExportSettings.centerObjects && revisedExportSet.Count > 1)? FindCenter(revisedExportSet) : Vector3.zero;
28172817
}
28182818

28192819
foreach (var unityGo in revisedExportSet) {

0 commit comments

Comments
 (0)