Fix UI size changes when saving scenes or prefabs in Editor with different layout
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user