summaryrefslogtreecommitdiffstats
path: root/editor/animation_bezier_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #88498 from CookieBadger/animation-fix-snapping-multipleRémi Verschelde2024-03-241-11/+25
|\ | | | | | | Fix snapping multiple keys in Animation
| * Fix snapping multiple keys in Animationemild2024-03-181-11/+25
| |
* | Merge pull request #88445 from CookieBadger/animation-paste-snap-fixRémi Verschelde2024-03-241-12/+28
|\ \ | | | | | | | | | Fix various bugs in Animation key right click actions
| * | Fix various bugs in Animation key right click actionsemild2024-02-201-12/+28
| | |
* | | Add auto focus timeline and bezier scale on animation editorHilderin2024-03-191-35/+94
| | | | | | | | | | | | | | | | | | | | | | | | Add a button at the bottom of the animation editor that change the zoom based on the animation length and the bezier scale based on the values and handles of the displayed tracks. The icon and the tooltip of the button change depending if the bezier editor is displayed or not. Some refactor was made in animation_track_editor.cpp to remove code duplication with the visibility check of the tracks. This should help with the issue #85826
* | | Merge pull request #69032 from ↵Rémi Verschelde2024-02-201-1/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | KoBeWi/check_every_changed_setting_in_every_group_everywhere() Use `check_changed_settings_in_group()` everywhere
| * | Use check_changed_settings_in_group() everywherekobewi2024-02-191-1/+3
| | |
* | | Fix Animation bezier key selection bugsemild2024-02-201-3/+14
| |/ |/|
* | use ED_IS_SHORTCUT macro instead of matches_eventCookieBadger2024-02-191-6/+6
|/
* Merge pull request #88350 from CookieBadger/animation-cut-keyframeRémi Verschelde2024-02-181-3/+26
|\ | | | | | | Implement Cut Selected Keys in AnimationPlayer
| * implemented cut selected keys in animation playeremild2024-02-151-3/+26
| |
* | Merge pull request #88360 from CookieBadger/bezier-ctrl-click-add-key-fixRémi Verschelde2024-02-151-10/+2
|\ \ | | | | | | | | | Fix Bezier Editor throwing error when adding key with CTRL+click
| * | fix bezier editor throws error on ctrl clickCookieBadger2024-02-151-10/+2
| | |
* | | Merge pull request #88352 from CookieBadger/bezier-handle-mode-undo-fixRémi Verschelde2024-02-151-1/+1
|\ \ \ | |/ / |/| | | | | Fix Bezier Editor HandleMode UndoRedo History mismatch
| * | Fix bezier editor handle mode undo history mismatchemild2024-02-151-1/+1
| |/
* | Merge pull request #88302 from CookieBadger/bezier-remove-unused-signalsRémi Verschelde2024-02-131-9/+0
|\ \ | |/ |/| | | Remove unused signals in AnimationBezierTrackEdit
| * remove unused signals in AnimationBezierTrackEditemild2024-02-131-9/+0
| |
* | Fix vertical zoom factor in Animation Bezier Editoremild2024-02-131-2/+2
| |
* | Merge pull request #87250 from CookieBadger/animation-copy-paste-keyframeRémi Verschelde2024-02-121-78/+213
|\ \ | |/ |/| | | Implement consistent functionality for select, copy, paste, and duplicate in AnimationPlayer
| * implement consistent select, copy, paste, duplicate in animation playeremild2024-02-061-78/+213
| |
* | Split theme generation logic into several subroutinesYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a new theme configuration struct to be passed to the aforementioned routines to better control reuse of styles and definitions in the generator. Everything not passed and not explicitly shared is scoped so it is not automatically accessible throughout the routine. This should ensure that the decision to share styles is a conscious one. In the future we will try to reduce the number of unique definitions and share most of it. This PR is a stepping stone on this path. This also puts the effort into separating redefinitions of default theme items vs custom types introduced only by the editor. In a few cases where editor-specific definitions need to reference default definitions we simply fetch them from the theme. It's not ideal and hides the dependency a bit, but hopefully these cases will be abstracted properly in due time.
* | Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
|/ | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* Update deferred calls to use Callableskobewi2024-01-091-1/+1
|
* Merge pull request #85142 from CookieBadger/animation-player-improvementsRémi Verschelde2024-01-081-1/+2
|\ | | | | | | Improve usability of zooming in the animation editor
| * Improved usability of zoom features in animation playerCookieBadger2024-01-071-1/+2
| |
* | Fix seeking bug in AnimationPlayerEditorSilc Lizard (Tokage) Renew2023-11-221-1/+1
|/
* Add vertical scrolling to bézier track editor.Saracen2023-10-221-23/+39
|
* Add EditorStringNames singletonkobewi2023-09-031-25/+26
|
* Add gesture to ViewPanner and simplify a bit its APIGilles Roudière2023-01-231-18/+7
|
* Add EditorUndoRedoManager singletonkobewi2023-01-161-8/+8
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Add inspector plugin for key time edit & Change find key argumentSilc Renew2022-12-221-9/+9
|
* Fix unmerged history in AnimationTrackEditorSilc Renew2022-12-101-2/+2
|
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+1
|
* Cleanup remaining EditorUndoRedoManager usageskobewi2022-11-241-4/+8
|
* Code simplifications found by cppcheckMarkus Sauermann2022-11-211-3/+1
| | | | | | | They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
* Fix the behavior of focus selection in bezier editorSilc Renew2022-11-191-4/+10
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-2/+2
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-7/+7
| | | | change warnings=all to use /W4.
* Port remaining connections to callable_mpTomasz Chabora2022-09-181-2/+2
|
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-4/+4
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-29/+29
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-2/+2
|
* Merge pull request #64647 from TokageItLab/auto-tangentRémi Verschelde2022-08-231-116/+174
|\
| * Add bezier preset and refactor bezier editorSilc Renew2022-08-231-116/+174
| | | | | | | | Co-authored-by: Razoric480 <razoric480@gmail.com>
* | Add per-scene UndoRedokobewi2022-08-221-1/+2
|/
* Merge pull request #63245 from V-Sekai/animation_editor_read_onlyRémi Verschelde2022-08-101-156/+181
|\
| * Add read-only mode to AnimationEditor for foreign resources.SaracenOne2022-07-211-156/+181
| |
* | Remove Signal connect bindsJuan Linietsky2022-07-291-3/+3
|/ | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()