summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_player.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #40063 from RandomShaper/clean_blend_timesRémi Verschelde2020-07-031-0/+2
|\ | | | | Ignore (clean) blend times for non-existent animations
| * Ignore blend times for inexistent animationsPedro J. Estébanez2020-07-021-0/+2
| |
* | Merge pull request #36879 from ThakeeNathees/animation-autocomplete-bug-fixRémi Verschelde2020-07-021-1/+1
|\ \ | |/ |/| Fix: animation autocomplete bug fixed
| * animation autocomplete bug fixedThakee Nathees2020-03-071-1/+1
| |
* | Restore capture caches when missingTomasz Chabora2020-06-051-1/+1
| |
* | Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-60/+114
| | | | | | | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* | Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-133/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* | Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-3/+8
| | | | | | | | Part of #33027.
* | Revert "Emit signal when animation ends by seek"Rémi Verschelde2020-05-041-2/+2
| | | | | | | | | | | | | | This reverts commit bf1cc116e15ec155c1dfff06bd02d2f1dfc21ee0. This needs more discussion to avoid breaking some users' expectations. See #38086 for arguments.
* | [Core] Rename linear_interpolate to lerpAaron Franke2020-04-291-2/+2
| |
* | Emit signal when animation ends by seekvolzhs2020-04-221-2/+2
| |
* | Replace more occurrences of NULL with nullptrRémi Verschelde2020-04-021-13/+0
| |
* | Replace NULL with nullptrlupoDharkael2020-04-021-6/+6
| |
* | Renamed 2D and 3D nodes to make their types explicitJuan Linietsky2020-03-271-6/+6
|/ | | | Fixes #30736.
* Signals: Manually port most of remaining connect_compat usesRémi Verschelde2020-02-281-5/+2
| | | | | | | | It's tedious work... Some can't be ported as they depend on private or protected methods of different classes, which is not supported by callable_mp (even if it's a class inherited by the current one).
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-3/+2
| | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-4/+4
| | | | | | | | | | | | | | | | | | | | | - Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
* Added StringName as a variant type.Juan Linietsky2020-02-211-6/+6
| | | | Also changed all relevant properties defined manually to StringName.
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-4/+4
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-2/+2
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky2020-02-151-1/+1
|
* ObjectID converted to a structure, fixes many bugs where used incorrectly as ↵Juan Linietsky2020-02-121-1/+1
| | | | 32 bits.
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-9/+9
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-251-1/+1
|\ | | | | Added some obvious errors explanations
| * Added some obvious errors explanationsqarmin2019-09-251-1/+1
| |
* | Added skin support and simplified APIs to override bone position.Juan Linietsky2019-09-181-1/+1
|/
* fix animation freeze when playing animation from another AnimationPlayerUnknown2019-08-191-1/+3
| | | | | | Donated by IMVU, Inc. Fixes #31410 When we create an animation player with an animation from which we will start another AnimationPlayer's animation at the moment when that animation is already active - it will be stopped. When starting an animation with play() func all the 'outside' animations for animation player were removed (`_stop_playing_caches` func). This pr prevents this behaviour for the case when play is called for animation that's still active. This way the behaviour is the same between "Animation Playback track" and other tracks (tested with value track)
* Remove ERR_EXPLAIN from scene/* codeTomasz Chabora2019-08-091-10/+3
|
* Merge pull request #24249 from zorbathut/zorbathut/animimmediateRémi Verschelde2019-06-201-8/+36
|\ | | | | Implement AnimationPlayer call modes as per #23498.
| * Implement AnimationPlayer call modes as per #23498.Ben Rog-Wilhelm2018-12-091-8/+36
| |
* | Fix 2D bones ignored by onion skinningPedro J. Estébanez2019-05-221-0/+8
| | | | | | | | Fixes #27819.
* | Fix typos with codespellRémi Verschelde2019-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* | Merge pull request #24437 from mateusfccp/single_quotes_optionRémi Verschelde2019-04-301-1/+10
|\ \ | | | | | | Add settings for single-quotes on completion
| * | Add settings for single-quotes on completionMateus Felipe C. C. Pinto2018-12-181-1/+10
| | |
* | | Removed some printsJuan Linietsky2019-03-021-3/+0
| | |
* | | Fix AnimationPlayer jumping to the beggining after ending on editor.Luiz2019-02-201-4/+8
| | |
* | | Fix AnimationPlayer bug where it wouldn't reset its position when finishedLuiz2019-02-141-0/+1
| | |
* | | -Fixes to undo redo to avoid crash, closes #24251Juan Linietsky2019-02-141-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | -Changed Animation to have a special signal when tracks are changed, to avoid unnecesary track cache rebuilds in AnimationPlayer -Added missing emit_changed whe modifying keys to Animation -Changed AnimationPlayer to use the new refcounted connections instead of the previous hacky way to keep references -Changed AnimationEditor to update the current track when keys are edited -Fixed bug where undo/redo did not work with AnimationKeyEdit (was not being updated) -Made sure UndoRedo does not mind deleted objects in undo/redo history, this would corrupt the history or clear it without need.
* | | Fix some AnimationPlayer bugs and update documentationLuiz2019-02-131-2/+10
| | |
* | | When an animationplayer sets a property on itself recreate the cachesHein-Pieter van Braam2019-02-011-2/+8
| | | | | | | | | | | | this fixes #25507
* | | Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
|/ / | | | | | | Happy new year to the wonderful Godot community!
* | Merge pull request #22739 from DualMatrix/autoplay_warnRémi Verschelde2018-12-121-0/+2
|\ \ | |/ |/| Added warning when setting autoplay of AnimationPlayer that's inside the tree.
| * Added warning when setting autoplay of AnimationPlayer that's inside the tree.DualMatrix2018-10-051-0/+2
| | | | | | | | Added warning when setting autoplay of AnimationPlayer that's inside the tree.
* | Made it possible to read AnimationPlayer queue from GDscriptDualMatrix2018-11-281-0/+10
| |
* | Reseek if cachees were cleared in animation player, fixes #19424Juan Linietsky2018-11-191-0/+3
|/
* Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde2018-09-271-0/+1
| | | | | | | | | | | Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
* Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ | | | | Misc. typos
| * Misc. typosluz.paz2018-09-121-1/+1
| | | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`