Browse Source

End dragging null check

Krzysztof Krysiński 2 months ago
parent
commit
cf860a0909
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/PixiEditor/Views/Animations/Timeline.cs

+ 2 - 2
src/PixiEditor/Views/Animations/Timeline.cs

@@ -300,9 +300,9 @@ internal class Timeline : TemplatedControl, INotifyPropertyChanged
     {
     {
         if (dragged)
         if (dragged)
         {
         {
-            if (draggedKeyFrames.Length > 0)
+            if (draggedKeyFrames is { Length: > 0 })
             {
             {
-                ChangeKeyFramesLengthCommand.Execute((draggedKeyFrames.ToArray(), 0, true));
+                ChangeKeyFramesLengthCommand?.Execute((draggedKeyFrames.ToArray(), 0, true));
             }
             }
         }
         }