Commit Graph

427 Commits

Author SHA1 Message Date
Fabio Alessandrelli
0c95ddb60d Use unztell64 in FileAccessZIP to ensure 64 bit return
(cherry picked from commit efccebd3db90d7baf0947cd02612ab987ab87868)
2024-07-14 21:04:32 +02:00
lawnjelly
1be9006ab0 Physics Interpolation - refactor Camera and fix get_camera_transform()
* Moves 3D Camera interpolation scene side.
* Automatically switches `get_camera_transform()` to report interpolated transform during `_process()`.
* Fixes `ClippedCamera` to work with physics interpolation.
2024-07-14 11:18:12 +02:00
Rémi Verschelde
ef997c9d2b Sync controller mappings DB with SDL 2 community repo
Synced with mdqinc/SDL_GameControllerDB@5b4efa3a20

(cherry picked from commit 1da02fa7be4ace876a53802d19711ec7037d94f3)
2024-07-14 08:52:59 +02:00
Rémi Verschelde
91beeffbd8 Sync controller mappings DB with SDL 2 community repo
Synced with mdqinc/SDL_GameControllerDB@4c9b8dace8

(cherry picked from commit 6772047e5077b3bfe1f81cd24c128f02b904c20e)
2024-07-14 08:52:50 +02:00
lawnjelly
131880d444 Physics Interpolation - Fix Transform2D::interpolate_with()
Ports the `interpolate_with()` routine from 4.x which works correctly with skew.
2024-07-14 08:08:05 +02:00
0bdb0ccac8 Don't access a Message's memory after calling it's destructor in MessageQueue. (Even though the way the code works currently this was not really a bug, but it can easily become one.) 2024-06-18 10:38:58 +02:00
3f996fad22 Remove unnecessary template parameters from constructors and desctuctors. 2024-06-18 10:17:14 +02:00
eebeadbe47 Added more helper methods to StringBuilder. 2024-04-27 18:53:54 +02:00
f09ab537e0 Clang-format everything. 2024-04-21 15:27:36 +02:00
6faa98c32a Backported from godot4: Save PackedByteArrays as base64 encoded.
- groud
de5073519e
2024-04-14 17:32:05 +02:00
ed224298e5 Also add is_zero_approx() to Vector4. 2024-04-14 16:59:12 +02:00
Haoyu Qiu
441bb29fd3 Add is_zero_approx methods to Vector{2,3} 2024-04-14 16:44:38 +02:00
f6d9ca069f Fix build. 2024-04-06 13:46:57 +02:00
ececc7991c Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
bruvzg
620b30a86a Backport locale selection improvements. 2024-04-06 12:37:02 +02:00
SysError99
487b454506 Add a get_or_add method to Dictionary
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2024-04-06 10:46:31 +02:00
e17cc864bc Added exp2 to the Math singleton. 2024-03-18 11:04:37 +01:00
60eb59ab19 Backpoered from Godot 4: Add is_built_in() method to Resource.
- KoBeWi
e393c2a734
2024-03-08 21:16:16 +01:00
27b73fa9f9 Removed Vector2i(Vector2) constructor, added a Vector2i conversion operator to Vector2 instead. This solves ambigous Variant to Vector2i conversion errors. 2024-03-07 18:56:55 +01:00
4abb1a23e9 Work on layered tile maps. 2024-03-04 22:15:59 +01:00
3e533b33bb Fix typo. 2024-03-04 21:15:00 +01:00
7779439e28 Backported comparison operators to Array from godot4. 2024-03-03 12:59:57 +01:00
2b57397fa7 Backported PROPERTY_USAGE_ARRAY from Godot 4. Reused one of the old deprecated property usage flags for it.
Original commit:
Implement properties arrays in the Inspector.
- groud
4bd7700e89
2024-03-02 22:35:19 +01:00
bd53556507 Use bitshifts for all property usage flags. 2024-03-02 19:36:29 +01:00
37e287d86d Backported goodies to SelfList from Godot4. 2024-03-02 12:01:27 +01:00
4cdb163626 Backported create_reference() helper methods for InputEvents from godot 4. 2024-03-01 21:45:27 +01:00
cf7b59b6c8 Fix small formatting inconsistencies. 2024-03-01 16:25:19 +01:00
dcd00dec81 Fix incorrect clipping in String::substr_index(). 2024-02-26 13:22:15 +01:00
8c06dce33f Now PROPERTY_HINT_BUTTON adds the property's name as the called method's first parameter. 2024-02-25 22:09:25 +01:00
66c2b12fc0 Added a new method to Expression so it can be used with multiple threads simultenously. 2024-02-25 10:25:46 +01:00
fa2a54a019 Added a way for platforms to define a custom resource pack location. 2024-02-17 22:14:44 +01:00
8284ff56b8 Fix DirAccess::get_filesystem_abspath_for() for .pck files. 2024-02-16 22:11:54 +01:00
3da74f0703 Added get_global_class_name method to Script. Now GDScriptParser uses this first to determine global class names, instead of parsing the script file again. 2024-02-13 20:09:46 +01:00
a5d8696021 Ported: Vertex cache optimizer
Optimizes indices to make good use of vertex cache on GPU.
- lawnjelly
0aa22b8f13
2024-02-08 21:35:01 +01:00
f63ed4be75 Sync controller mappings DB with SDL2 community repo
Synced with mdqinc/SDL_GameControllerDB@232c738
2024-02-08 17:37:12 +01:00
Rémi Verschelde
f073af9af6 zlib/minizip: Update to version 1.3
Remove `infback.c` which we don't need.

The `OF` macro was also removed so I can drop the patch where I yell
at Gentoo developers.

(cherry picked from commits e0e1f2e4a2056db1a908af75612daaaf5b129ebd
and 071499ac0d8e33e6f269437c3ce4fab52cc43f90)
2024-02-08 15:06:20 +01:00
Rémi Verschelde
b44ee23cee Web: Clarify that OS.get_unique_id is not supported
Remove the base error message in `OS`, we no longer really error out this
way for not implemented methods. Instead, each platform should override them
to provide the context they want.

Fixes #82439.

(cherry picked from commit 0a10f09ce4321695940a626eef9c64b36f599193)
2024-02-08 15:05:20 +01:00
Caroline Joy Bell
0f099eca32 Fix #if *_ENABLED inconsistencies, should check if defined
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-02-08 14:16:03 +01:00
Cody Roberts
eb8ca6d2ed Add project settings for AVAudioSessionCategory on iOS
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2024-02-08 14:06:59 +01:00
A Thousand Ships
8341ddc450 Fix AABB.encloses failing on shared upper bound
This differs from `Rect2` and was fixed for those classes in the past
2024-02-08 14:00:08 +01:00
Bastien JAUNY
15cccb331f Fix unitialized variables in core 2024-02-08 13:43:25 +01:00
8ddf92681e Fixed smaller issues in VariantOP. 2024-01-20 12:50:13 +01:00
c03536414c Fixed typo. 2024-01-19 15:32:17 +01:00
585358e91b Added missing setters to VariantOP. 2024-01-07 11:46:05 +01:00
43b14a071c Added to_real helper methods to String. 2023-12-27 13:02:57 +01:00
57c3233187 Optimized path_clean_end_slash in String. 2023-12-22 19:26:41 +01:00
4d6b2f6f55 Fix logic in String::substr_index. 2023-12-22 15:35:35 +01:00
4f6d95d77e Fix warning. 2023-12-20 23:25:00 +01:00
2e41d4dfcd Now unicode error printing is disabled by default. Also can be enabled via a macro. 2023-12-20 23:21:32 +01:00
Rémi Verschelde
1c70f86950 Fix various GCC 13 warnings
Fixes occurrences of `-Wtype-limits`, `-Wmaybe-uninitialized`,
`-Wduplicated-branches`.
2023-12-20 22:57:54 +01:00