1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Add toggle to insert keys/markers at current time or mouse position

Adds a new editor setting editors/animation/insert_at_current_time and a toggle button in the Animation Track Editor to let users choose whether to insert keys and markers at the current timeline cursor (when enabled) or at the mouse position (default behavior).

- Key insertion
- Paste and duplicate operations
- Editor setting persistence
- Icon by @TokageItLab

Fixes #103272
This commit is contained in:
shadow-foss
2025-06-14 03:43:11 +05:30
parent c6d130abd9
commit c5490f7284
5 changed files with 38 additions and 2 deletions

View File

@@ -547,6 +547,10 @@
<member name="editors/animation/default_fps_mode" type="int" setter="" getter="">
Default step mode for [AnimationPlayer] (seconds or FPS). The option is remembered locally for a scene and this option only determines the default value when scene doesn't have local state yet.
</member>
<member name="editors/animation/insert_at_current_time" type="bool" setter="" getter="">
If [code]true[/code], animation keys and markers are inserted at the current time in the animation.
If [code]false[/code], they are inserted at the mouse cursor's position.
</member>
<member name="editors/animation/onion_layers_future_color" type="Color" setter="" getter="">
The modulate color to use for "future" frames displayed in the animation editor's onion skinning feature.
</member>