summaryrefslogtreecommitdiffstats
path: root/scene/resources/animation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotSpartan3222024-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Make `Animation::capture_included` read-onlyRaul Santos2024-08-101-6/+1
| | | | | | The `PROPERTY_USAGE_READ_ONLY` flag only makes the property read-only in the inspector, but the property also has the `PROPERTY_USAGE_NO_EDITOR` flag which means it won't show up in the inspector. So it does nothing, while still making it editable from scripting. To make it read-only for scripting too, this PR removes the setter from the `PropertyInfo`. And since the `set_capture_included` method is now unused, it was also removed.
* Clamp bezier handle length to half the length of animationKasper Frandsen2024-07-041-0/+14
|
* Fix seeking Animation immediate after playback for Discrete trackSilc Lizard (Tokage) Renew2024-06-081-11/+11
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+0
|
* Add argument options to AnimationPlayer for auto captureSilc Lizard (Tokage) Renew2024-05-031-2/+2
|
* Add auto_capture option to AnimationPlayerSilc Lizard (Tokage) Renew2024-05-021-0/+29
|
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-5/+5
|
* Make consistent the retrieval of audio tracksSilc Lizard (Tokage) Renew2024-02-181-13/+21
|
* Add CallbackModeDiscrete to AnimationMixerSilc Lizard (Tokage) Renew2024-02-171-24/+25
|
* Merge pull request #87817 from Dheatly23/fix-87813Rémi Verschelde2024-02-121-1/+1
|\ | | | | | | Fix quaternion keyframe optimization for collinear rotation over 180 degrees
| * Fix Quaternion Keyframe OptimizationDheatly232024-02-031-1/+1
| |
* | Replace error checks against `size` with `is_empty`A Thousand Ships2024-02-091-2/+2
|/
* Fix cubic interpolation wrong argument for the timeSilc Lizard (Tokage) Renew2024-01-311-15/+15
|
* Remove Object pointer/solve types conflict in AnimationTrackCacheSilc Lizard (Tokage) Renew2024-01-081-0/+22
| | | | Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Add cubic_interpolate_in_time_variant() to AnimationSilc Lizard (Tokage) Renew2023-12-301-77/+192
|
* Restored the ability for linear interpolation to work on a mix of integer ↵Michael Wörner2023-12-131-15/+31
| | | | and float keyframes.
* Rework blending method in Variant animation for Int/Array/StringSilc Lizard (Tokage) Renew2023-11-161-317/+470
|
* Replace `sanity` with `safety` for checksA Thousand Ships2023-10-081-6/+6
|
* Fix various typos with codespellRémi Verschelde2023-09-121-1/+1
| | | | Using 2.2.6.dev180+ge3a2cfbd.
* Fix animation keyframes being skipped sometimes when being played backwards. ↵Tom Coxon2023-09-081-1/+1
| | | | #57271
* Fix incorrect cast when animating `int`A Thousand Ships2023-09-041-12/+12
| | | | | Type was cast to `int` rather than `int64_t` Also corrects `real_t` to `double`
* Merge pull request #79426 from sepTN/fix-basis-tweeningYuri Sizov2023-07-141-0/+6
|\ | | | | | | Fix `tween_property` on "Basis" to properly update its value
| * Fix `tween_property` on "Basis" to properly update its valueSeptian2023-07-131-0/+6
| |
* | Merge pull request #79279 from kleonc/animation-fix-transform-subtractingYuri Sizov2023-07-141-2/+2
|\ \ | |/ |/| | | Fix `Animation::subtract_variant` for affine transforms
| * Fix Animation::subtract_variant for affine transformskleonc2023-07-101-2/+2
| |
* | add 3.x compatibility for animation loop modeChinmay Awale2023-07-101-0/+5
|/
* Expose interpolation methods for 3D track in Animation classSilc Renew2023-04-251-8/+49
|
* Implement blending audio feature to AnimationTreeSilc Renew2023-01-281-1/+34
|
* Merge pull request #62123 from holgac/bugfix-62097Rémi Verschelde2023-01-271-0/+6
|\ | | | | | | Fix infinite loop in animation compress
| * Fixes #62097: infinite loop in animation compress due to too small page sizeholgac2022-07-011-0/+6
| | | | | | | | | | | | | | | | Fixed an infinite loop caused when given page size is too small to store anything. If, in the first step of compression, we attempt a rollback, we end up calling LocalVector::resize with AnimationCompressionDataState::validated_packet_count which is -1. This resize function takes a uint, and there's a bitshift operation that assumes that by bitshifting enough times, we'll reach a number greater than or equal to the requested memory amount, which we'll never do for uint(-1), and this causes an infinite loop. To fix, I'm adding an early failure in case the given page size isn't enough.
* | Use range iterators in LocalVector loopskobewi2023-01-211-22/+22
| |
* | Merge pull request #70547 from TokageItLab/pingpong-wrapRémi Verschelde2023-01-061-155/+113
|\ \ | | | | | | | | | Fix pingpong-loop with `loop_wrap` is not working & clean-up cubic interpolation key retrieve process
| * | Fix pingpong with loop wrap is not workingSilc Renew2022-12-251-155/+113
| | |
* | | 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-23/+27
| |
* | Remove UPDATE_TRIGGER & Match behaviors between AnimationTree/PlayerSilc Renew2022-12-021-2/+1
| | | | | | | | #69357
* | Refactor process of animation to retrive keys more exactlySilc Renew2022-12-011-197/+289
| |
* | Refactor process of AnimationTree for end of animationSilc Renew2022-11-221-231/+32
| |
* | Code simplifications found by cppcheckMarkus Sauermann2022-11-211-5/+1
| | | | | | | | | | | | | | They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
* | Fix connection of animation changed signal in AnimationTrackEditorSilc Renew2022-11-201-10/+0
| |
* | Fix periods in editor strings and messagesHugo Locurcio2022-11-141-1/+1
| | | | | | | | | | | | - Ensure all strings with ellipsis end with 3 periods instead of 2. - Fix extraneous period in "Error calling from signal '...' to callable" messages.
* | Fix crash from impossible Object::cast_toMarkus Sauermann2022-11-081-42/+42
| | | | | | | | | | | | | | | | A Vector<>-variant can't be used in an Object::cast_to, because Vector doesn't inherit from Object and this cast always returns a nullptr. This patch replaces the Object::cast_to and accesses the contained Vector directly.
* | SCons: Re-enable treating `#warning` as error with `werror`Rémi Verschelde2022-10-101-12/+4
| | | | | | | | | | | | | | | | Replace all TODO uses of `#warning` by proper TODO comments, and will open matching bug reports to keep track of them. We don't have a great track record fixing TODOs, but I'd wager we're even worse for fixing these "TODO #warning" so we should prohibit this usage.
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-11/+11
| | | | | | | | change warnings=all to use /W4.
* | Fix MSVC warning C4702: unreachable codeRémi Verschelde2022-09-281-3/+1
| | | | | | | | Part of #66537.
* | Changed the rest definition of SkeletonProfileHumanoid thumbSilc Renew2022-09-181-1/+1
| |
* | Move some methods to Animation from Variant for refactoringSilc Renew2022-09-151-3/+461
| |
* | Fixed AnimationTrackEditor redraw/deselect timing and find key compearationSilc Renew2022-08-291-67/+67
| |