Fix error when previewing animation timeline values after reimport

This commit is contained in:
2024-06-07 22:17:15 +03:00
parent 50c29f6a9b
commit 992436b47c

View File

@@ -363,6 +363,8 @@ namespace FlaxEditor.GUI.Timeline.Tracks
/// <inheritdoc />
public override void OnDestroy()
{
if (_previewValue != null)
Timeline.ShowPreviewValuesChanged -= OnTimelineShowPreviewValuesChanged;
_previewValue = null;
_rightKey = null;
_addKey = null;