Commit graph

4955 commits

Author SHA1 Message Date
lawnjelly
d0dbb2f0af
Merge pull request #108382 from Faless/mbedtls/3.x_update_to_mbedtls_3.6.4
[3.x] mbedTLS: Update to mbedTLS 3.6.4
2025-09-13 10:29:56 +01:00
BlueCube3310
79fbd93008 [3.x] DDS: Backport fixes from 4.x branch 2025-08-17 18:35:06 +02:00
Fabio Alessandrelli
0770c9a4a3 mbedTLS: Update to mbedTLS 3.6.4
mbedTLS 2.28 is now EOL, and will no longer receive security updates.

This commit backports from Godot 4 the changes needed to update to
mbedTLS 3.6 (new LTS), including TLSv1.3 support.
2025-07-07 17:18:44 +02:00
lawnjelly
0718852d2c Add EditorSettings EDITOR_GET_CACHED 2025-07-01 17:00:08 +01:00
lawnjelly
ac46a86c44 Optimize hotspots with Object::is_reference() 2025-06-23 11:05:12 +01:00
lawnjelly
bd47dc4b29 Remove implicit conversion from LocalVector to Vector 2025-06-14 19:46:29 +01:00
lawnjelly
9cf1151864
Merge pull request #106578 from corngood/mono-fix
mono: move MonoGCHandle into gdmono namespace
2025-05-25 08:31:46 +01:00
David McFarland
7f90c622f5 mono: move MonoGCHandle into gdmono namespace
This conflicts with ::MonoGCHandle in mono 6.14 (maintained by winehq).
2025-05-18 21:01:04 -03:00
lawnjelly
be6f971f4f Use the in-built casting instead of dynamic_cast on all platforms
The in-built casting appears significantly faster than `dynamic_cast`.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-03-31 12:46:24 +01:00
lawnjelly
0758ad0612 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-03-18 16:28:40 +00:00
Travis Wrightsman
a2a46009f5 Enable builds with miniupnpc API 18
Backports https://github.com/godotengine/godot/pull/97139 without
bumping the embedded miniupnpc library.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-12-13 20:53:14 -08:00
Rémi Verschelde
fd9bd108af
CI: Update Ubuntu runners to 24.04, but keep 22.04 for Linux builds
Pin clang-format to version 16, and black to 24.10.0.
Keep using Ubuntu 22.04 for Linux builds for portability.
2024-11-07 12:50:17 +01:00
Capital
354e656531 Backport 65910 for Godot 3 2024-09-25 12:57:56 -04:00
lawnjelly
db511879f0
Merge pull request #96127 from RedOrbweaver/fix_msbuild_logger_crash
[3.x] Fix MSBuild logger exception thrown when processing a warning or an error with no associated file
2024-09-12 12:11:54 +01:00
RedOrbweaver
5cbe7fd750 Fixed issues relating to receiving an MSBuild warning/error that did not refer to any file 2024-09-12 12:46:41 +02:00
Rémi Verschelde
32ddd4f4e0
Doctool: Remove version attribute from XML header
We don't use that info for anything, and it generates unnecessary diffs
every time we bump the minor version (and CI failures if we forget to
sync some files from opt-in modules (mono, text_server_fb).

(cherry picked from commit 81064cc239)
2024-09-11 12:41:48 +02:00
lawnjelly
3771078c02 Verify GLTF indices to prevent crash with corrupt files
Also verify prior to vertex optimization.
2024-07-31 10:39:17 +01:00
pablitar
601a9eb4f5 GLTF: Fixed external images getting embedded on import
Added a map to keep track of external images during import, and used
that map to instance the textures using the resource loader instead of
creating a new texture from scratch
2024-07-22 17:10:19 -03:00
lawnjelly
02fa77eb30 Revert "Fix parsing inner class declaration when "pass" keyword is on the same line"
This reverts commit 5bcc3d476c.
2024-07-15 10:37:21 +01:00
Rémi Verschelde
cfc4a0eff0
Bump version to 3.6-rc 2024-07-02 13:06:42 +02:00
Raul Santos
a8980fbd78
Fix type hints in GLTFDocumentExtension virtual methods 2024-07-02 04:19:10 +02:00
Aaron Franke
945a49064f
[3.x] GDNative: Fix Linux riscv warning about ignored sysv_abi 2024-06-03 04:22:47 -07:00
Rémi Verschelde
2a347ab867
miniupnpc: Disable socket timeout on Windows, matching upstream
Fixes #88471.

(cherry picked from commit f695de7c68)
2024-05-07 13:21:45 +02:00
kleonc
1db5090dcd
[C#] Fix Transform3D.InterpolateWith applying rotation before scale
(cherry picked from commit e2ed63b313)
2024-05-01 12:05:40 +02:00
Rémi Verschelde
634f9523c2
SCons: Fix build with GDScript LSP disabled
Fixes #83947.

(cherry picked from commit bfd7a50036)
2024-04-25 16:24:13 +02:00
Rémi Verschelde
ee61ad46e7
Mono: Replace distutils function with shutil equivalent
Fixes #91154.
2024-04-25 16:04:42 +02:00
Mikael Hermansson
38b646ca4a
Allow LSP to process multiple messages per poll
(cherry-picked from commit e2485044a1)
2024-04-25 11:47:51 +02:00
Haoyu Qiu
ed952f82bd Add is_zero_approx methods to Vector{2,3} 2024-04-10 19:02:42 +08:00
lawnjelly
2b97d143a2
Merge pull request #62574 from kdiduk/50971-duplicate-keys-in-dictionary-literal
[3.x] Check duplicate keys in dictionary literals: enums and const variables
2024-04-09 08:34:08 +01:00
lawnjelly
75cadbabcb
Merge pull request #81089 from SysError99/3.x-dont-warm-about-return-value-discarded
[3.x] GDScript: Don't warn about `RETURN_VALUE_DISCARDED` by default
2024-04-04 13:02:22 +01:00
Kirill Diduk
52507443d3 Check duplicate keys in dictionary literals: enums and const variables
Check identifiers (const variables and unnamed enums) and named
enums when parsing dictionary literals whether the keys are not
duplicated.

In case of duplicate key is encountered, highlight the line with it
and print error message:
`Duplicate key "foo" found in Dictionary literal`

This commit is a logical continuation of the commit dab73c7 which
implemented such checks only for literal keys (which fixed #7034).

Apart from that, this commit also fixes the issue with the error
message itself, which was shown one line below the duplicated key
in case it was the last one in the dictionary literal and there
was no hanging comma.

Also, the format of the error message has been changed so that now
the error message also contains the value of the key which is duplicated.
Instead of `Duplicate key found in Dictionary literal`, it now prints
`Duplicate key "<value>" found in Dictionary literal`

Fixes #50971
2024-03-25 00:07:51 +01:00
lawnjelly
6e0468d452
Merge pull request #88367 from Faless/gdnative/arm_sysv_abi_warnings
[3.x] GDNative: Fix Linux arm32 warning about ignored sysv_abi attribute
2024-02-27 15:01:22 +00:00
Ansraer
1e7c60174e fix crash on mat creation after orm refactor 2024-02-16 20:51:27 +01:00
Fabio Alessandrelli
90b83e77a6 [3.x] GDNative: Fix Linux arm32 warning about ignored sysv_abi attribute 2024-02-15 14:30:03 +01:00
Ansraer
b9cbffd957 add ORMSpatialMaterial 2024-02-08 20:34:11 +01:00
Rémi Verschelde
e96ebf9218
Merge pull request #61568 from lawnjelly/merge_node
[3.x] Add MergeGroup node to simplify merging Meshes at runtime
2024-02-07 09:49:45 +01:00
Danil Alexeev
e922e49b13
[3.x] GDScript: Fix get_method_list for custom functions 2024-02-07 10:10:32 +03:00
lawnjelly
8b79135538 Add MergeGroup node to simplify merging Meshes at runtime 2024-01-31 08:28:51 +00:00
Rémi Verschelde
c6e4ee72df
Linux: Disable webm module on arm32, we can't build libvpx properly
libvpx arm32 build with NEON can be supported in theory (and it works
on Android armv7), but our SCons logic for it is super convoluted and
broken. It needs significant rework to be made less error prone, and
ensure we can compile `.s` files properly with cross-compilation
toolchains.

The demand to play WebM videos on older Pi3-style SoCs is likely low,
so for now this is a simple compromise.

Could be improved with some effort if someone is motivated.
2024-01-17 15:06:52 +01:00
Rémi Verschelde
dfb03a3956
Merge pull request #87272 from halotroop2288/patch-3
[3.x] Fix `#if *_ENABLED` inconsistencies, should check if defined
2024-01-17 13:47:09 +01:00
Rémi Verschelde
1eac1a2794
Merge pull request #87265 from AThousandShips/aabb_fix_cs_3_x
[3.x] [C#] Fix `Encloses` failing on shared upper bound for `AABB` and `Rect2`
2024-01-17 13:46:47 +01:00
Caroline Joy Bell
9c0bd332a5
Fix #if *_ENABLED inconsistencies, should check if defined
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-01-17 10:21:40 +01:00
A Thousand Ships
ee4396809c
[C#] Fix Encloses failing on shared upper bound for AABB and Rect2 2024-01-16 20:19:43 +01:00
Rémi Verschelde
ae34c85a87
Linux: Fix arm32 build for OIDN and Embree
Still paying the cost of not having refactored all architecture handling
in the 3.x branch so we have this broken hybrid of arch/bits which is
unreliable.
2024-01-16 18:17:05 +01:00
Rémi Verschelde
fd93036834
Merge pull request #86466 from andy-noisyduck/csharp-transform2d-operator-fix
[3.x] C#: Fix incorrect `Rect2` sizing when using the `Transform2D` `*` operator.
2024-01-05 11:07:19 +01:00
Rémi Verschelde
f37ff9e254
Merge pull request #79123 from dalexeev/3.x-gds-prevent-native-class-shadowing
[3.x] GDScript: Prevent native class shadowing
2024-01-05 11:06:31 +01:00
Andy Savage
05624ddbc8 Fix incorrect Rect2 size when Transform2D * operator. 2023-12-23 02:39:07 +00:00
Rémi Verschelde
1fe73d4feb
Merge pull request #85917 from akien-mga/3.x-fix-Wtype-limits-gcc-arm64
[3.x] Fix various GCC 13 warnings
2023-12-11 20:02:09 +01:00
Rémi Verschelde
51732690e6
Merge pull request #85916 from akien-mga/gdnative-fix-linux-arm64-sysv_abi-attribute-warning
[3.x] GDNative: Fix Linux arm64 warning about ignored `sysv_abi` attribute
2023-12-11 20:02:06 +01:00
Rémi Verschelde
4bb21d3d83
Merge pull request #85915 from akien-mga/3.x-fix-linux-arm64-theora-libvpx
[3.x] SCons: Fix Linux arm64 build for theora and libvpx
2023-12-11 20:02:03 +01:00