summaryrefslogtreecommitdiff
path: root/scene/animation
AgeCommit message (Collapse)Author
2022-08-29Improve documentation for `get_animation()`Haoyu Qiu
2022-08-27Add linear/cubic angle interpolation to Animation interpolation typeSilc Renew
2022-08-26Merge pull request #64367 from Mickeon/rename-var-to-strRémi Verschelde
Rename `str2var` to `str_to_var` and similar
2022-08-26Rename `str2var` to `str_to_var` and similarMicky
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`
2022-08-26Merge pull request #54456 from rafallus/fix/anim_state_machine_startRémi Verschelde
Fix AnimationTree state machine start()
2022-08-23Merge pull request #64678 from TokageItLab/implement-ease-bakerRémi Verschelde
Fix Quaternion Tween and add Easing baker to AnimationTrackEditor
2022-08-22Merge pull request #59564 from KoBeWi/FINALLY,_ULTIMATE_UNDO_REDORémi Verschelde
2022-08-22Merge pull request #63802 from TokageItLab/curve-transitionRémi Verschelde
2022-08-22Merge pull request #64339 from YuriSizov/core-multilevel-validate-propertyRémi Verschelde
2022-08-22Add per-scene UndoRedokobewi
2022-08-22Make `_validate_property` a multilevel methodYuri Sizov
2022-08-22Fix Quaternion Tween and implement ease bakerSilc Renew
2022-08-20Clean up mesh include code and commentsAaron Franke
2022-08-18added Curve in animation node transition for better control over cros…Silc Renew
Co-authored-by: jeronimo-schreyer <jeronimo.schreyer@gmail.com>
2022-08-08Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov
2022-07-31Fix AnimationNodeStateMachine::rename_nodeGuilherme Felipe de C. G. da Silva
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-27Add a Movie Quit On Finish property to AnimationPlayerHugo Locurcio
This quits the project when an animation is done playing in the given AnimationPlayer, but only in Movie Maker mode. When this happens, a message is printed with the absolute path of the AnimationPlayer node that caused the engine to quit. This can be used to create videos that stop at a specified time without having to write any script. A report is now also printed to the console when the video is done recording (as long as the engine was exited properly). This report is unfortunately not always visible in the editor's Output panel, as it's printed too late. A method was also added to get the path to the output file from the scripting API.
2022-07-26add position track normalization & post process key value for retargetSilc Renew
2022-07-26Fix initial value of TRS3DTrack cache in AnimationPlayerSilc Renew
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-25Merge pull request #63219 from reduz/implement-vector4-projectionRémi Verschelde
2022-07-23Implement Vector4, Vector4i, Projectionreduz
Implement built-in classes Vector4, Vector4i and Projection. * Two versions of Vector4 (float and integer). * A Projection class, which is a 4x4 matrix specialized in projection types. These types have been requested for a long time, but given they were very corner case they were not added before. Because in Godot 4, reimplementing parts of the rendering engine is now possible, access to these types (heavily used by the rendering code) becomes a necessity. **Q**: Why Projection and not Matrix4? **A**: Godot does not use Matrix2, Matrix3, Matrix4x3, etc. naming convention because, within the engine, these types always have a *purpose*. As such, Godot names them: Transform2D, Transform3D or Basis. In this case, this 4x4 matrix is _always_ used as a _Projection_, hence the naming.
2022-07-21Fix incorrect expression base in ↵João Pedro São Gregorio Silva
`AnimationNodeStateMachinePlayback::_check_advance_condition`
2022-07-16refactor sync in AnimationTreeSilc Renew
2022-06-29Merge pull request #62510 from MinusKube/animation-reset-crashRémi Verschelde
Fix animation player crashing when caching disabled tracks
2022-06-29Fix animation player crashing when caching disabled tracksMinusKube
2022-06-29fixed Pingpong animation get snaging on the edge in AnimationTreeSilc Renew
2022-06-28Add AnimationTree Advance ExpressionsSaracenOne
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>
2022-06-23Merge pull request #61885 from TokageItLab/fix-method-seekRémi Verschelde
Improved way of getting MethodTrack keys
2022-06-23Merge pull request #61826 from guilhermefelipecgs/fix_leakRémi Verschelde
Fix ObjectDB instances leaked on state machine when editor closes
2022-06-23Merge pull request #62337 from reduz/respect-disabled-animation-tracksRémi Verschelde
Respect disabled animation tracks
2022-06-23Respect disabled animation tracksreduz
Fixes #25537, supersedes #60509
2022-06-23Fix animation reset on savereduz
Old (prototype) name was left in code Supersedes #60565
2022-06-23improved way of getting method track keysSilc 'Tokage' Renew
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-19Remove argument option for the `remove_animation` that no longer existsHaoyu Qiu
2022-06-18Remove duplicate assignment of AnimationNode::State.validAndreas Raddau
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.
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-08Fix ObjectDB instances leaked on state machine when editor closesGuilherme Felipe de C. G. da Silva
2022-05-24Remove configuration warning from AnimationPlayerSnailRhymer
Remove warning about animations in different libraries having the same name, since shared names are fine. Also fix missing vformat argument when setting the name of an animation to one that does conflict with an animation in the same library.
2022-05-24Merge pull request #61106 from snailrhymer/animation-library-fixesRémi Verschelde
Fix errors and improve UX relating to new animation libraries
2022-05-23Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git.
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-19Use range iterators for RBSet in most casesAaron Record
2022-05-19Add dedicated macros for property name extractionHaoyu Qiu
* Replace case-by-case extraction with PNAME & GNAME * Fix group handling when group hint begins with property name * Exclude properties that are PROPERTY_USAGE_NO_EDITOR * Extract missing ADD_ARRAY*, ADD_SUBGROUP* macros
2022-05-18Merge pull request #60774 from TokageItLab/root-seek-modeRémi Verschelde
Fixed broken root motion calculation in internal process of `AnimationBlendTree` such as `NodeOneShot`
2022-05-17Fix errors and improve UX relating to new animation librariesSnailRhymer
- Fix a bug causing an error message when a scene containing an AnimationPlayer with a reset track is saved, by correctly referencing the temporary "default" library. - Make library dropdown in new animation window assign correct library when creating an animation. - Similarly allow choice of library when duplicating animation. - Make library dropdown default to library of currently selected animation. - Make library dropdown show when exactly one library exists, and it isn't [Global]. Include [Global] on the dropdown in this case (will be newly created if dialog is confirmed). - When appending (x) to avoid New Anim name collisions, correctly check target library instead of [Global]. - Add parentheses when appending x when duplicating animations in the library editor, for consistency. - Change titles and prompts to be distinct in name/rename/duplicate dialiogs. - Fix bug in OprionButton.get_selectable_item(true) when last is not selectable. - Fix issues where animation wasn't found on deletion/rename by correctly prepending library name. - Remove an extraneous print_line from animation_track_editor. - Add messages to errors when an animation isn't found.
2022-05-16Replace most uses of Map by HashMapreduz
* 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!
2022-05-12Add a new HashMap implementationreduz
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<>