Skip to content

Commit 49b3f9f

Browse files
authored
Merge pull request #302 from Unity-Technologies/nofavro-manual-update-bug-fix
(nofavro) quick fix for right-click / update not giving a UI
2 parents e7d81c8 + be378d3 commit 49b3f9f

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)