Commit graph

103 commits

Author SHA1 Message Date
Thaddeus Crews
e380a41752
Style: Add class_db.h includes explicitly 2026-02-26 15:50:28 -06:00
kobewi
6f86914f55 Cleanup _validate_property() implementations 2026-02-23 15:05:25 +01:00
chocola-mint
0852de7098 Account for the current section when processing AnimationTracks 2026-02-08 22:08:33 +09:00
Rémi Verschelde
63c78e684b
Merge pull request #114165 from KoBeWi/static
Use actual class names in resource type hints
2026-02-02 10:10:24 +01:00
Rémi Verschelde
429750f60b
Merge pull request #115093 from Ivorforce/hashmap-explicit-copy
Change copy constructors of `HashMap` and `AHashMap` from implicit to explicit
2026-01-31 22:50:51 +01:00
kobewi
f7b9703cbd Use actual class names in resource type hints 2026-01-29 21:07:56 +01:00
Thaddeus Crews
173d022434
Merge pull request #109108 from timothyqiu/anilib-split
Fix error after renaming animation in Animation Library Editor
2026-01-27 09:04:20 -06:00
Lukas Tenbrink
1825e89787 Change copy constructors of HashMap and AHashMap from implicit to explicit. 2026-01-21 13:01:23 +01:00
Rémi Verschelde
b57985ab9e
Merge pull request #114582 from TokageItLab/hide-animlib-inspector
Hide animation library properties in inspector
2026-01-13 22:20:37 +01:00
Silc Lizard (Tokage) Renew
ecee746215 Hide animation library properties in inspector 2026-01-04 08:41:28 +09:00
Silc Lizard (Tokage) Renew
8299b704b3 Ensure clear_animation_instances after blending frame result 2025-12-31 07:09:28 +09:00
Silc Lizard (Tokage) Renew
ff615f8aed Fix AnimationMixer handling disabled track in RESET 2025-12-19 10:19:44 +09:00
LanzaSchneider
d968c3e5d6 Fix AnimationMixer error spam by respecting cache validity on invalid root_node 2025-11-25 22:48:37 +08:00
Silc Lizard (Tokage) Renew
4f255fa7d7 Add interpolate_via_rest static func to Animation class 2025-11-22 07:52:32 +09:00
Silc Lizard (Tokage) Renew
afd12e32ad Make AnimationLibrary serialization unuse Dictionary 2025-11-05 11:36:42 +09:00
Lukas Tenbrink
d6036462b1 Remove hash_map.h include from a_hash_map.h, and remove cross conversion operators. 2025-10-06 17:20:31 +02:00
Aaron Franke
3d1c9fd5de
Move server files into their subfolders 2025-09-30 19:39:39 -07:00
Thaddeus Crews
2557b0da9f
Merge pull request #101285 from Nazarwadim/use_LocalVector_in_animation
Use `LocalVector` in `Animation`
2025-09-16 20:28:52 -05:00
Luo Zhihao
adbd78af91
AnimationTree: Fix libraries is stored 2025-09-11 09:41:22 +08:00
Haoyu Qiu
01dfdaedb3 Fix error after renaming animation in Animation Library Editor 2025-07-30 12:56:19 +08:00
Nazarii
1964918e46 Use LocalVector in Animation 2025-06-18 18:37:55 +03:00
LuoZhihao
8ba4656ea3 Compile out editor-only logic within validate_property in games 2025-06-12 12:54:19 +08:00
LuoZhihao
713ed59a77 Remove unnecessary _validate_property() calling 2025-06-03 21:57:36 +08: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
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
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
Yufeng Ying
4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
kobewi
bc9d0c7835 Add templated version of ObjectDB::get_instance() 2025-03-27 15:43:23 +01:00
Ryan
8df0234101 Remove incorrect errors in AnimationMixer 2025-03-20 20:00:07 -04:00
Yufeng Ying
bebe037abf Add ConstIterator to Dictionary. 2025-03-13 01:28:46 +08: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
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
Lukas Tenbrink
b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +01: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
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
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
nazarii
76208f7155 Implement array based hash map 2024-10-24 21:34:12 +03:00
chocola-mint
ed13a840fa Add markers to animation 2024-09-29 17:27:36 +09:00
Rémi Verschelde
493f3edce7
Merge pull request #96572 from adamscott/fix-samples-leak
Fix leak when using audio samples instead of streams
2024-09-09 17:51:42 +02:00
kobewi
d25e36b015 Fix AnimationLibrary loading 2024-09-05 00:07:23 +02:00
Adam Scott
d3ddce6b88
Fix leak when using audio samples instead of streams 2024-09-04 12:56:03 -04:00
Nazarii
660e28f5cb Use static LocalVector for processed_hashes 2024-08-30 19:41:38 +03:00
nazarii
3580ced21e Optimize animations 2024-08-30 19:18:56 +03:00
Silc Lizard (Tokage) Renew
7c4bc0a378 Fix processed_hashes type to Animation::TypeHash from int 2024-07-25 16:21:59 +09:00
Silc Lizard (Tokage) Renew
04ac6a74df Fix total weight calculation to separate track types 2024-07-25 11:23:15 +09:00