Skip to content

Commit be378d3

Browse files
author
Benoit Hudson
committed
(nofavro) quick fix for right-click / update not giving a UI
1 parent e7d81c8 commit be378d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/FbxExporters/Editor/FbxPrefabAutoUpdater.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,12 @@ public static void UpdateLinkedPrefab(GameObject prefabInstance)
234234

235235
foreach (var fbxPrefabComponent in prefab.GetComponentsInChildren<FbxPrefab>())
236236
{
237+
// Launch the manual update UI to allow the user to fix
238+
// renamed nodes (or auto-update if there's nothing to rename).
237239
var fbxPrefabUtility = new FbxPrefabUtility(fbxPrefabComponent);
238-
fbxPrefabUtility.SyncPrefab();
240+
ManualUpdateEditorWindow window = (ManualUpdateEditorWindow)EditorWindow.GetWindow(typeof(ManualUpdateEditorWindow));
241+
window.Init(fbxPrefabUtility, fbxPrefabComponent);
242+
window.Show();
239243
}
240244
}
241245

0 commit comments

Comments
 (0)