1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00
Commit Graph

1014 Commits

Author SHA1 Message Date
kobewi
fd5646856d Remove PropertyTweener start warning 2025-07-08 15:53:53 +02:00
Malcolm Anderson
914480e256 Skip killed/invalid subtween 2025-07-02 10:10:02 -07:00
kobewi
b615c7b3db Block Tween custom_step() during step 2025-06-26 12:27:53 +02:00
Rémi Verschelde
0129180c72 Merge pull request #106567 from TokageItLab/fix-fadeout-dur
Fix fade out duration to extend a bit take into account current delta in NodeOneShot
2025-06-22 11:59:01 +02:00
LuoZhihao
8ba4656ea3 Compile out editor-only logic within validate_property in games 2025-06-12 12:54:19 +08:00
Adam Johnston
d72006119d Add node started/finished signals for animation state machines 2025-06-05 12:09:16 -07:00
Silc Lizard (Tokage) Renew
64e015cb65 Add default paramater for AnimationNode as super class 2025-06-06 02:23:59 +09:00
Rémi Verschelde
e5c8fb8f1d Merge pull request #107005 from TokageItLab/fix-anim-node-param-type
Fix ambiguous AnimationNode's parameter type in default value and make `validate_type_match()` static function
2025-06-05 13:12:43 +02:00
Silc Lizard (Tokage) Renew
678fb63451 Fix ambiguous AnimationNode's parameter type in default value
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2025-06-05 10:02:22 +09:00
LuoZhihao
713ed59a77 Remove unnecessary _validate_property() calling 2025-06-03 21:57:36 +08:00
Silc Lizard (Tokage) Renew
2ffb3fb690 Fix fade out duration to extend a bit take into account current delta 2025-05-19 22:41:42 +09:00
Thaddeus Crews
70fa7fba19 Merge pull request #101792 from TokageItLab/oneshot-scale
Change `NodeOneShot` fading to uses self delta instead of input delta
2025-05-19 08:01:30 -05:00
Silc Lizard (Tokage) Renew
b4ac896c66 Changed NodeOneShot fading so that it does not depend on input delta 2025-05-18 09:27:05 +09:00
Rémi Verschelde
b7f75578db Merge pull request #104419 from Ryan-000/fix_animation_mixer_errors
Remove incorrect errors in AnimationMixer
2025-05-13 01:04:33 +02:00
Thaddeus Crews
0793c626d2 Merge pull request #106111 from Calinou/animationmixer-libraries-use-typed-dictionary
Use a type-hinted dictionary for AnimationLibrary's `libraries` property
2025-05-07 12:48:33 -05:00
kobewi
34b485d62b Remove empty constructors and destructors from scene/ 2025-05-06 14:46:54 +02:00
Hugo Locurcio
006c9bb39a Use a type-hinted dictionary for AnimationLibrary's libraries property
This is done at a editor property hint level so that it doesn't break compatibility.
In other words, the actual `libraries` property exposed to the scripting API
remains an untyped Dictionary.
2025-05-06 00:32:30 +02:00
lawnjelly
f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Thaddeus Crews
796b9caa09 Merge pull request #105552 from adamwych/expose-get-node-list
Expose `AnimationNode(StateMachine/BlendTree).get_node_list()`
2025-04-27 19:21:26 -05:00
Thaddeus Crews
3947cbe3b2 Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Nazarii
afc923f415 Use AHashMap for RBMap nodes and HashMap input_activity 2025-04-26 13:21:12 +03:00
Thaddeus Crews
fdf8f3ac73 Merge pull request #105089 from Summersay415/current-anim
Fix `current_animation_changed` emission on animation finish
2025-04-22 18:25:48 -05:00
Adam Wychowaniec
d193af78c5 Expose AnimationNode(StateMachine/BlendTree).get_node_list() 2025-04-22 21:08:26 +02:00
Thaddeus Crews
1e8b7fe5a0 Merge pull request #101582 from Flynsarmy/recursive_transition_wording
Improve wording on recursive transition detection warning
2025-04-18 12:21:26 -05:00
Thaddeus Crews
ad40939b6f Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Thaddeus Crews
94282d88f9 Core: Use Math namespace for constants 2025-04-10 16:29:30 -05:00
Thaddeus Crews
819bb61710 Merge pull request #103198 from Naputt1/fix-tween.kill()-isValid()-return-false
Fix `Tween.is_valid()` returning `true` after calling `kill()`
2025-04-10 10:18:21 -05:00
Summersay415
540eca9099 Fix current_animation_changed emission on animation finish 2025-04-06 19:11:39 +07:00
Yufeng Ying
4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
Thaddeus Crews
d52b84e472 Merge pull request #103993 from aaronfranke/geometry-segment
Directly use segment points in Geometry2D/3D function parameters
2025-04-01 08:01:34 -05:00
Thaddeus Crews
8f6bb119f4 Merge pull request #100602 from KoBeWi/over_100_changes_in_50_random_files_aka_the_best_kind_of_PR
Add templated version of `ObjectDB::get_instance()`
2025-03-31 12:03:47 -05:00
Aaron Franke
c1acc839a8 Directly use segment points in Geometry2D/3D function parameters 2025-03-30 16:25:59 -07:00
Yyf2333
22b5ec17fb Using iterator pattern instead of List::Element *.
Co-authored-by: Adam Scott <ascott.ca@gmail.com>
2025-03-28 13:29:15 +08:00
kobewi
bc9d0c7835 Add templated version of ObjectDB::get_instance() 2025-03-27 15:43:23 +01:00
kobewi
8f657977fc Fix final tween value with custom interpolator 2025-03-24 22:55:57 +01:00
Thaddeus Crews
1cb3cfaa8e Style: Convert namespaces to PascalCase 2025-03-23 19:10:24 -05:00
Ryan
8df0234101 Remove incorrect errors in AnimationMixer 2025-03-20 20:00:07 -04:00
kobewi
10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
Yufeng Ying
bebe037abf Add ConstIterator to Dictionary. 2025-03-13 01:28:46 +08:00
SaracenOne
250e69856e Fixes missing process_state error in blend spaces. 2025-03-12 11:46:38 +00:00
Thaddeus Crews
324512e11c Style: Replace header guards with #pragma once 2025-03-07 17:33:47 -06:00
naputt1
0c7b4fd057 Fix tween.isValid return true after kill 2025-02-23 00:47:49 +00:00
Rémi Verschelde
c4e15e212d Merge pull request #102433 from akien-mga/unexpose-AnimationNodeStartState-EndState
Don't expose AnimationNodeStartState and AnimationNodeEndState as internal, this triggers a ClassDB bug
2025-02-10 10:49:14 +01:00
Rémi Verschelde
ede3d21519 Don't expose AnimationNodeStartState and AnimationNodeEndState as internal, this triggers a ClassDB bug
Fixes #99534.
2025-02-04 22:19:56 +01:00
Rémi Verschelde
6d4c2d002d Revert "Use AHashMap for RBMap nodes and HashMap input_activity"
This reverts commit c91c604eaa.

This caused a critical regression:

- Fixes #102374.
2025-02-04 20:41:29 +01:00
Flyn San
3af934bc9c Improve wording on recursive AnimationNodeStateMachinePlayback transition detection warning 2025-01-15 23:10:46 +10:00
Nazarii
c91c604eaa Use AHashMap for RBMap nodes and HashMap input_activity 2025-01-14 19:35:42 +02:00
Aarni Koskela
f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
kobewi
ccc134fd1b Tween code improvements 2025-01-07 01:21:23 +01:00
Malcolm Anderson
be266138d7 Add tween_subtween method for nesting Tweens
No actual functionality yet

Actual subtween functionality implemented

Added documentation for Tween.tween_subtween and SubtweenTweener

Implemented some additional functions

`set_ease`, `set_trans`, and `set_delay`
Documentation only for `set_delay` so far, since I have tested it

Removed set_ease and set_trans

Upon further investigation, the way they are implemented for Tween doesn't appear to work here

Fixed indentation in documentation

Reset subtween when parent loops

Fix return type of `SubtweenTweener.set_delay`

Add notes to documentation

Apply suggestions from code review

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>

Apply some suggested changes

- Remove excessive documentation
- Add Tween constructor that takes in SceneTree
- Make `SubtweenTweener::subtween` public so that `Tween` doesn't have to be a friend class

Remove unneeded friend class SceneTree

Remove superfluous documentation describing subtween behavior

Apply suggestions from code review

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>

Apply suggestions from code review

Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Apply suggestions from code review

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>

Early return from `tween_subtween` if the subtween is `null`
2025-01-03 14:28:48 -08:00