summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_tree.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow AnimationNodes to restart when transitioning to the same stateSilc Renew2023-01-191-5/+18
|
* Simplify some editor plugin logic and remove dead codeYuri Sizov2023-01-051-1/+0
|
* 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".
* Merge pull request #70278 from ↵Rémi Verschelde2022-12-231-1/+4
|\ | | | | | | | | | | TokageItLab/add-animation-started-finished-signal-to-tree Add `animation_started/finished` signals to `AnimationTree` and fix time accuracy in StateMachine
| * Add animation_started/finished signals to AnimationTreeSilc Renew2022-12-211-1/+4
| |
* | Add inspector plugin for key time edit & Change find key argumentSilc Renew2022-12-221-4/+4
|/
* Add null checks to AnimationTreeEditors and _clear_editors()Silc Renew2022-12-131-1/+1
|
* Fix seeking process order to retrieve key correctly for AnimationTrackSilc Renew2022-12-121-1/+1
|
* Avoid error spamming in animation_tree when path is not foundMedhat Riad2022-12-071-1/+3
|
* Remove UPDATE_TRIGGER & Match behaviors between AnimationTree/PlayerSilc Renew2022-12-021-4/+4
| | | | #69357
* Merge pull request #69336 from TokageItLab/get-anim-keys-more-exactlyRémi Verschelde2022-12-021-8/+8
|\ | | | | | | Refactor process of animation to retrive keys more exactly
| * Refactor process of animation to retrive keys more exactlySilc Renew2022-12-011-8/+8
| |
* | Fix animation signal caches_cleared firing timingSilc Renew2022-12-021-1/+0
| |
* | Remove unneeded calc in root motionSilc Renew2022-12-011-1/+1
|/
* Emphasize the warning about special case blend for animationSilc Renew2022-12-011-2/+2
|
* Merge pull request #68992 from TokageItLab/animtree-trackend-processRémi Verschelde2022-11-281-24/+25
|\ | | | | | | Refactor process of AnimationTree for end of animation
| * Refactor process of AnimationTree for end of animationSilc Renew2022-11-221-24/+25
| |
* | Merge pull request #69199 from TokageItLab/fix-and-refactor-root-motionRémi Verschelde2022-11-281-10/+20
|\ \ | | | | | | | | | Fix broken root motion scale & Refactor API & Add sample codes in documentation
| * | Fix broken root motion scale and refactor APISilc Renew2022-11-261-10/+20
| | |
* | | Fixed AnimationTree TrackCacheValue bug for special case blendingSilc Renew2022-11-271-1/+10
|/ /
* | Merge pull request #68993 from TokageItLab/fix-anim-blending-for-DISCRETE-modeRémi Verschelde2022-11-231-0/+6
|\ \ | | | | | | Fix animation blending for value track `UPDATE_DISCRETE` and `UPDATE_TRIGGER` mode
| * | Fix animation blending for value track DISCRETE/TRIGGER modeSilc Renew2022-11-221-0/+6
| | |
* | | Fix blending with negative blend weightsMai Lavelle2022-11-221-5/+5
| |/ |/|
* | Optimize animation blend tree processSilc Renew2022-11-161-88/+55
|/
* Simplify GDVIRTUAL_CALL callskobewi2022-10-191-26/+13
|
* Merge pull request #65983 from Mickeon/rename-audio-player-volume-dbRémi Verschelde2022-10-081-5/+1
|\ | | | | | | Rename AudioStreamPlayer3D's `unit_db` to `volume_db`
| * Rename AudioStreamPlayer3D's `unit_db` to `volume_db`Micky2022-09-171-5/+1
| | | | | | | | | | | | AudioStreamPlayer3D.`unit_db` -> `volume_db` Now matches the same name AudioStreamPlayer and AudioStreamPlayer2D use.
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-4/+4
| | | | | | | | change warnings=all to use /W4.
* | Change time parameters and variables to double typeDave Palais2022-09-261-1/+1
| | | | | | | | Addresses #65313
* | Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-2/+2
|/
* Merge pull request #65325 from TokageItLab/refactor-variant-for-animRémi Verschelde2022-09-161-3/+12
|\ | | | | | | Move some static methods to `Animation` from `Variant` for refactoring `Animation` and `Tween`
| * Move some methods to Animation from Variant for refactoringSilc Renew2022-09-151-3/+12
| |
* | Fix redraw timing in AnimationBlendTreeEditorSilc Renew2022-09-141-0/+43
|/
* Add linear/cubic angle interpolation to Animation interpolation typeSilc Renew2022-08-271-2/+28
|
* Rename `str2var` to `str_to_var` and similarMicky2022-08-261-1/+1
| | | | | | | | | | | | | | | | | | Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
* Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-3/+3
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* add position track normalization & post process key value for retargetSilc Renew2022-07-261-0/+42
|
* refactor sync in AnimationTreeSilc Renew2022-07-161-9/+11
|
* Add AnimationTree Advance ExpressionsSaracenOne2022-06-281-0/+18
| | | | | | | | | | | Allows specifying an expression as a condition for state machine transitions. This gives much greater flexibility for creating complex state machines. By directly interfacing with the script code, it is possible to create complex animation advance condition for switching between states. Ensure assigning AnimationTreeStateMachineTransition base expression node in editor is relative to current AnimationTree node. Allow setting an expression base node on the AnimationTree itself. Co-Authored-By: reduz <reduzio@gmail.com>
* Merge pull request #61885 from TokageItLab/fix-method-seekRémi Verschelde2022-06-231-16/+35
|\ | | | | Improved way of getting MethodTrack keys
| * improved way of getting method track keysSilc 'Tokage' Renew2022-06-231-16/+35
| |
* | Respect disabled animation tracksreduz2022-06-231-0/+4
| | | | | | | | Fixes #25537, supersedes #60509
* | Remove duplicate assignment of AnimationNode::State.validAndreas Raddau2022-06-181-1/+0
|/ | | | | | In AnimationTree::_process_graph, the State.valid variable is set to true. A few lines later, it's set again. Probably a copy/paste mistake. This commit removes the second assignment.
* Use range iterators for RBSet in most casesAaron Record2022-05-191-3/+3
|
* Merge pull request #60774 from TokageItLab/root-seek-modeRémi Verschelde2022-05-181-31/+31
|\ | | | | Fixed broken root motion calculation in internal process of `AnimationBlendTree` such as `NodeOneShot`
| * Fixed delta & Implement selection of whether or not to seek rootSilc Renew2022-05-091-31/+31
| |
* | Replace most uses of Map by HashMapreduz2022-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | Add a new HashMap implementationreduz2022-05-121-20/+14
|/ | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-1/+1
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.