Fix UI size changes when saving scenes or prefabs in Editor with different layout

This commit is contained in:
Wojtek Figat
2024-03-08 14:56:34 +01:00
parent d390938fb6
commit fc029b018e
2 changed files with 48 additions and 0 deletions

View File

@@ -355,6 +355,8 @@ namespace FlaxEditor.Windows.Assets
try
{
Editor.Scene.OnSaveStart(_viewport);
// Simply update changes
Editor.Prefabs.ApplyAll(_viewport.Instance);
@@ -371,6 +373,10 @@ namespace FlaxEditor.Windows.Assets
throw;
}
finally
{
Editor.Scene.OnSaveEnd(_viewport);
}
}
/// <inheritdoc />