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
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
Thaddeus Crews
0e00f41650
Merge pull request #100735 from tvenclovas96/tween_ignore_time_scale
...
Add an option for tweens to ignore `Engine.time_scale`
2024-12-30 08:58:25 -06:00
A Thousand Ships
a1846b27ea
Improve use of Ref.is_null/valid
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Thaddeus Crews
0c80b47ef0
Merge pull request #97687 from YYF233333/animation
...
Convert Vector to LocalVector in animation system
2024-12-23 11:14:56 -06:00
Yyf2333
2f9a6636bd
Convert Vector to LocalVector in animation system.
...
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-12-24 00:50:48 +08:00
Yufeng Ying
73d85f46c9
Remove unused headers in scene.
...
Co-authored-by: Thaddeus Crews <repiteo@outlook.com >
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-12-24 00:40:09 +08:00
tvenclovas96_bigblackc
dbc0cc1437
Add Tween::ignore_time_scale
2024-12-22 18:39:54 +02:00
Rémi Verschelde
382b0dfad1
Merge pull request #100373 from TokageItLab/fix-blendspace-discrete-sync
...
Fix Sync in BlendSpace1D/2D with BlendModeDiscrete
2024-12-17 23:00:02 +01:00
Rémi Verschelde
f1eb2f928d
Merge pull request #100039 from TokageItLab/ping-pong-param
...
Make `backward` be parameter of the `AnimationTree` in the `AnimationNodeAnimation`
2024-12-17 22:59:47 +01:00
Rémi Verschelde
9830780b3d
Merge pull request #100416 from TokageItLab/anode-ex
...
Make `AnimationNodeExtension` extend `AnimationNode` instead of `AnimationRootNode`
2024-12-17 16:19:22 +01:00
Guilherme Sousa
469f5a8fbc
Rename animation node process function
2024-12-15 18:27:21 +01:00
Silc Lizard (Tokage) Renew
8d5a5f130a
Make AnimationNodeExtention extend AnimationNode instead of RootNode
2024-12-15 06:36:47 +09:00
Silc Lizard (Tokage) Renew
d54229de8c
Fix Sync in BlendSpace1D/2D with BlendModeDiscrete
2024-12-14 13:00:29 +09:00
Thaddeus Crews
3c6896fd2a
Merge pull request #99181 from GuilhermeGSousa/animation-node-extension
...
Add animation node extension
2024-12-13 16:19:30 -06:00
Yufeng Ying
180c1b1cfa
Remove dead code.
2024-12-12 23:40:25 +08:00
Chaosus
7adb986e15
Fix orphan strings in AnimationNodeStateMachine
2024-12-11 11:08:23 +03:00