This commit is contained in:
Wojtek Figat
2022-01-08 20:01:27 +01:00
parent 844fad2ced
commit 73f7688c58
2 changed files with 5 additions and 2 deletions

View File

@@ -400,8 +400,9 @@ namespace FlaxEditor.GUI.Timeline
} }
else else
{ {
// Select (additive for the move) // Select
_timeline.Select(this, true); if (!_timeline.SelectedMedia.Contains(this))
_timeline.Select(this);
} }
_timeline.OnKeyframesMove(null, this, location, true, false); _timeline.OnKeyframesMove(null, this, location, true, false);

View File

@@ -1560,6 +1560,7 @@ namespace FlaxEditor.GUI.Timeline
track.AddMedia(media); track.AddMedia(media);
} }
MarkAsEdited(); MarkAsEdited();
Select(media);
} }
/// <summary> /// <summary>
@@ -1922,6 +1923,7 @@ namespace FlaxEditor.GUI.Timeline
} }
else else
{ {
OnKeyframesDeselect(null);
foreach (var track in _tracks) foreach (var track in _tracks)
{ {
if (Mathf.IsInRange(timelinePos.Y, track.Top, track.Bottom)) if (Mathf.IsInRange(timelinePos.Y, track.Top, track.Bottom))