Merge branch 'animation_timeline_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-animation_timeline_fix

This commit is contained in:
Wojtek Figat
2024-06-10 18:07:36 +02:00

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;