From 19ecbef585a50e162a790747fe08174c4d114e44 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 1 Oct 2026 23:19:11 +0200 Subject: [PATCH] Fix compilation with older .net --- .../Editor/GUI/Timeline/Tracks/CurvePropertyTrack.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/Editor/GUI/Timeline/Tracks/CurvePropertyTrack.cs b/Source/Editor/GUI/Timeline/Tracks/CurvePropertyTrack.cs index 4fdc5bd89..de859fa0b 100644 --- a/Source/Editor/GUI/Timeline/Tracks/CurvePropertyTrack.cs +++ b/Source/Editor/GUI/Timeline/Tracks/CurvePropertyTrack.cs @@ -294,12 +294,16 @@ namespace FlaxEditor.GUI.Timeline.Tracks if (IsExpanded) { // Layout bug: whole curve showing after track resize needs panel scrolls bars s smoothing disabled and showing twice - Curve.MainPanel.VScrollBar?.EnableSmoothing = false; - Curve.MainPanel.HScrollBar?.EnableSmoothing = false; + if (Curve.MainPanel.VScrollBar != null) + Curve.MainPanel.VScrollBar.EnableSmoothing = false; + if (Curve.MainPanel.HScrollBar != null) + Curve.MainPanel.HScrollBar.EnableSmoothing = false; Curve.ShowWholeCurve(); Curve.ShowWholeCurve(); - Curve.MainPanel.VScrollBar?.EnableSmoothing = true; - Curve.MainPanel.HScrollBar?.EnableSmoothing = true; + if (Curve.MainPanel.VScrollBar != null) + Curve.MainPanel.VScrollBar.EnableSmoothing = true; + if (Curve.MainPanel.HScrollBar != null) + Curve.MainPanel.HScrollBar.EnableSmoothing = true; } base.OnExpandedChanged();