1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Allow jumping to previous/next keyframe in animation player

This commit is contained in:
passivestar
2024-08-23 23:04:03 +04:00
parent a1acd38c35
commit a7abbe5e9e
4 changed files with 104 additions and 29 deletions

View File

@@ -4580,6 +4580,10 @@ bool AnimationTrackEditor::is_snap_enabled() const {
return snap->is_pressed() ^ Input::get_singleton()->is_key_pressed(Key::CMD_OR_CTRL);
}
bool AnimationTrackEditor::is_bezier_editor_active() const {
return bezier_edit->is_visible();
}
bool AnimationTrackEditor::can_add_reset_key() const {
for (const KeyValue<SelectedKey, KeyInfo> &E : selection) {
const Animation::TrackType track_type = animation->track_get_type(E.key.track);