Commit graph

971 commits

Author SHA1 Message Date
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
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
Lukas Tenbrink
b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +01:00
Guilherme Sousa
d7462d223c Add animation node extension 2024-12-05 04:27:16 -08:00
Silc Lizard (Tokage) Renew
652db79421 Make backward be parameter of the AnimationTree in the NodeAnimation 2024-12-05 20:58:41 +09:00
Rémi Verschelde
d6b20fd7e5
Merge pull request #98402 from vaner-org/highlight-node-neighbours
Reduce opacity of nodes with no shared transition when selecting an AnimationNodeStateMachine node
2024-12-02 15:50:22 +01:00
rune-scape
d58b2e879f Get rid of easily removable uses of const_cast 2024-12-01 17:50:13 -08:00
lullabyist
366fa9ff39 Reduce opacity of nodes with no shared transition when selecting an AnimationNodeStateMachine node
Applied suggestions from code review
2024-12-01 18:21:09 +05:30
Thaddeus Crews
391e0a6808
Merge pull request #99585 from TokageItLab/start-end-each
Make start/end can be retrieved from each PlaybackData on AnimationPlayer
2024-11-26 13:04:41 -06:00
Silc Lizard (Tokage) Renew
ebf7e86bd4 Make start/end can be retrieved from each PlaybackData on AnimPlayer 2024-11-23 22:49:37 +09:00
Thaddeus Crews
37305e40bc Merge pull request #95711 from TokageItLab/warn-oneshot-prop
Add hint for oneshot property & warning when it will be updated continuously by Force Continuous in `AnimationMixer`
2024-11-22 14:54:30 -06:00
Thaddeus Crews
fe1c044c73 Merge pull request #99394 from TokageItLab/root-local
Add `root_motion_local` option to AnimationMixer to pre-multiply root motion rotation accumulator before blending
2024-11-22 14:54:24 -06:00
Thaddeus Crews
0430b977b6 Merge pull request #99348 from TokageItLab/explicit_elapse
Add `explicit_elapse` option to AnimationNodeTimeSeek to handle some processes
2024-11-22 14:54:11 -06:00
Thaddeus Crews
2993289172
Merge pull request #86481 from Illauriel/add-animlib-folding
Add persistent folding to Animation Library Editor
2024-11-21 17:56:57 -06:00
Silc Lizard (Tokage) Renew
9ab94df772 Add explicit_elapse option to NodeSeek to handle some processes 2024-11-20 22:51:27 +09:00
Illauriel
5de38f7fd3 Add persistent folding to Animation Library Editor 2024-11-19 20:01:30 +01:00
Silc Lizard (Tokage) Renew
755bcf4737 Add root_motion_local option to AnimationMixer 2024-11-19 08:25:31 +09:00
HolonProduction
a389eb4608 Add back AnimationPlayer.get_argument_options 2024-11-15 13:06:59 +01:00
Thaddeus Crews
07d7d9bca5
Merge pull request #94372 from TokageItLab/advance-on-start
Add `advance_on_start` option to `NodeAnimation` to handle `advance(0)` for each `NodeAnimation`
2024-11-13 08:33:57 -06:00
Thaddeus Crews
370c692bcb
Merge pull request #98706 from Nazarwadim/fix_capture_cache_was_not_cached
Fix `capture_cache.animation` was not cached
2024-11-13 08:33:54 -06:00
Silc Lizard (Tokage) Renew
0c1f970adb Add advance_on_start option to NodeAnimation 2024-11-12 04:40:15 +09:00
Silc Lizard (Tokage) Renew
761a20f7a7 Add hint for oneshot & warning when it will be updated continuously 2024-11-11 01:12:45 +09:00
Nazarii
d1dc7afdd5 Fix capture_cache.animation was not cached 2024-10-31 19:26:02 +02:00
Thaddeus Crews
598cfbdfd6
Merge pull request #97020 from GuilhermeGSousa/fix-non-const-anim-node-process
Fix non const animation node `_process` virtual function
2024-10-29 19:26:00 -05:00
Guilherme Sousa
ec62978dd0 Fix non const animation node process function 2024-10-26 17:56:51 +02:00
nazarii
76208f7155 Implement array based hash map 2024-10-24 21:34:12 +03:00
Ainsley Su
baf0fb7e26 Fix error when stopping empty animation player.
Check if animation exists before get section start time.

Signed-off-by: Ainsley Su <vhtmscyo@gmail.com>
2024-10-03 11:04:27 +02:00
chocola-mint
ed13a840fa Add markers to animation 2024-09-29 17:27:36 +09:00
Thaddeus Crews
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
Haoyu Qiu
f169616cc6 Update AnimationTree parameter list when updating AnimationNodeTransition input names 2024-09-20 16:21:03 +08:00