Fix scripts reload to auto-save any modified assets in editor windows

This commit is contained in:
Wojtek Figat
2025-04-08 22:34:45 +02:00
parent 1ae098331d
commit c75b33eb7d
3 changed files with 7 additions and 2 deletions

View File

@@ -317,7 +317,7 @@ namespace FlaxEditor.Viewport.Previews
private void OnScriptsReloadBegin()
{
// Prevent any crashes due to dangling references to anim events
_previewModel.ResetAnimation();
_previewModel?.ResetAnimation();
}
/// <inheritdoc />