summaryrefslogtreecommitdiffstats
path: root/scene/animation/tween.cpp
Commit message (Collapse)AuthorAgeFilesLines
* bug with Tween.is_active, fixes #39760Chistpohe LY2020-07-201-8/+6
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-73/+124
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-17/+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-2/+6
| | | | Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-17/+34
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Fix: Tween always return true for _get(), _set()Thakee Nathees2020-05-051-2/+8
|
* Replace NULL with nullptrlupoDharkael2020-04-021-28/+28
|
* Removed boolean return type from majority of method in TweenYuri Roubinsky2020-03-061-110/+92
|
* Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-19/+19
| | | | | | | | | | | | | | | | | | | | | - 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.
* Merge pull request #36411 from Janglee123/rect2-tweenRémi Verschelde2020-02-231-39/+88
|\ | | | | Added tween support for Rect2
| * Added tween support for Rect2janglee2020-02-231-39/+88
| | | | | | | | Fixes #34575
* | Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-14/+14
|/ | | | objects and made them default.
* Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky2020-02-151-11/+0
|
* Fixed Tween::start() with pending updatesPouleyKetchoupp2020-01-221-0/+1
| | | | | Start was canceled instead of deferred in case of an update in progress. Fixes #35441
* 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.
* Provide default Tween values for transition and easing typesAndrii Doroshenko (Xrayez)2019-12-121-6/+6
| | | | | TRANS_LINEAR and EASE_IN_OUT are chosen as defaults for interpolation and follow methods.
* Fix some overflows and unitialized variablesRafał Mikrut2019-11-201-0/+2
|
* Fix Tween follow_property finishing with nullMark Riedesel2019-10-231-4/+40
|
* Fix misc. source comment typosluz.paz2019-09-191-1/+1
| | | Found using `codespell -q 3 -S ./thirdparty,*.po -L ang,ba,cas,dof,doubleclick,fave,hist,leapyear,lod,nd,numer,ois,paket,seeked,sinc,switchs,te,uint -D ~/Projects/codespell/codespell_lib/data/dictionary.txt `
* Added is_inside_tree() check in both Timer and Tweenshaderbeast2019-09-031-1/+3
| | | | Tween now throws error and doesnt even execute.
* Remove ERR_EXPLAIN from scene/* codeTomasz Chabora2019-08-091-29/+15
|
* Some code changed with Clang-Tidyqarmin2019-06-261-3/+1
|
* Implementing 0-duration tweensDevin Pentecost2019-06-141-165/+430
| | | | | Some light refactor Adding comments in functions
* Added signal for Tween emitted at completionChaosus2019-04-031-1/+4
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde2018-09-271-9/+11
| | | | | | | | | | | 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 #21913 from DualMatrix/tween_remove_allRémi Verschelde2018-09-121-0/+4
|\ | | | | Fixed calling start() after remove_all() on tween not working
| * Fixed calling start() emmediately after remove_all() on tween not wrokingDualMatrix2018-09-111-0/+4
| | | | | | | | | | | | Fixed calling start() emmediately after remove_all() on tween not wroking Fixes #19901
* | Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+2
|/ | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Tween: Add a unique identifier to InterpolateData to be able to remove the ↵James2018-08-161-25/+36
| | | | right one when finished
* interpolation was not removed because of id mismatchJames2018-08-091-1/+1
|
* Check "done" state in original loopRăzvan C. Rădulescu2018-06-271-18/+10
| | | | | | | My first attepmt I added a second loop to check if processing should stop. This attempts to optimize by using the original loop (one loop). Also resets `elapsed` time on finish of tween which fixes `tell()`.
* Fix and make Tween node less confusingRăzvan C. Rădulescu2018-06-261-42/+27
| | | | | | | | | | | | | | | | | | | | | | | I've made the following changes: - make `is_active` the main way of keeping track of tween processing/activity, meaning that `is_active` will now return `false` if all tween actions have finished or if it isn't started or if it was stopped via `set_active(false)` or any other mode - removed is_stopped because is redundand now The above meant that we don't have to keep track of yet another variable `available` since everything is based on `*processing_internal` so I removed it, likewise it's own local `processing` variable was removed, as well as the "double" `_set_process` which it feels more like a hack. What wasn't changed: - `tell()` still returns max value (i.e. `== get_runtime()` when all tweens `finish`) *More testing is needed*. So far I've tested repeat on/off, delay, `is_active()` working corretly, `set_active(true), set_active(false)`, but probably more tests are necessary, all the resets, stops, resume etc.
* Adding is_stopped method to Tweensteincodes2018-06-071-0/+5
|
* Take tween speed into account when calculating runtimeRasmus Ketelsen2018-05-251-1/+6
|
* update signals' MethodInfo in TweenPaul Joannon2018-01-231-3/+3
| | | | key is a NodePath, not a String
* Bind many more properties to scriptsBojidar Marinov2018-01-121-0/+2
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Merge pull request #15161 from volzhs/tween-followRémi Verschelde2018-01-031-46/+39
|\ | | | | Fix Tween follow not working
| * Fix Tween follow not workingvolzhs2017-12-291-46/+39
| | | | | | | | Fix regression from 7609efe7571733a38a4c372d9c69ea9c71601936
* | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Merge pull request #12284 from bojidar-bg/allow-subproperty-setRémi Verschelde2017-11-211-51/+77
|\ | | | | Allow for getting/setting "dotted" properties of objects
| * Allow for getting/setting indexed properties of objects using get/set_indexedBojidar Marinov2017-11-211-53/+75
| | | | | | | | Performance is around the same as using pure set() through GDScript.
| * Make Tween::interpolate_property's able to get() the initial valueBojidar Marinov2017-11-131-0/+4
| | | | | | | | To use this behavior, pass `null` in place of the initial_value parameter.
* | Rename Rect3 to AABB.Ferenc Arn2017-11-171-8/+8
|/ | | | Fixes #12973.
* Refactor Fixed to PhysicsPoommetee Ketson2017-10-211-1/+1
|
* Renamed fixed_process to physics_processAndreaCatania2017-09-301-6/+6
|
* Cleaned up logic in Tween::_tween_process(), fixes #9187cryptonaut2017-08-291-14/+10
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-19/+19
|