Add shared selected keyframes moving ability for timeline tracks

#519
This commit is contained in:
Wojtek Figat
2021-08-25 15:07:53 +02:00
parent 2beb0e137b
commit b85521decd
10 changed files with 266 additions and 127 deletions

View File

@@ -2458,5 +2458,16 @@ namespace FlaxEditor.GUI.Timeline
trackContext.OnKeyframesDelete(editor);
}
}
/// <inheritdoc />
public void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end)
{
location = control.PointToParent(_backgroundArea, location);
for (int i = 0; i < _tracks.Count; i++)
{
if (_tracks[i] is IKeyframesEditorContext trackContext)
trackContext.OnKeyframesMove(editor, _backgroundArea, location, start, end);
}
}
}
}