Commit Graph

4939 Commits

Author SHA1 Message Date
3771078c02 Verify GLTF indices to prevent crash with corrupt files
Also verify prior to vertex optimization.
2024-07-31 10:39:17 +01:00
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
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
cfc4a0eff0 Bump version to 3.6-rc 2024-07-02 13:06:42 +02:00
a8980fbd78 Fix type hints in GLTFDocumentExtension virtual methods 2024-07-02 04:19:10 +02:00
945a49064f [3.x] GDNative: Fix Linux riscv warning about ignored sysv_abi 2024-06-03 04:22:47 -07:00
2a347ab867 miniupnpc: Disable socket timeout on Windows, matching upstream
Fixes #88471.

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

(cherry picked from commit bfd7a50036)
2024-04-25 16:24:13 +02:00
ee61ad46e7 Mono: Replace distutils function with shutil equivalent
Fixes #91154.
2024-04-25 16:04:42 +02:00
38b646ca4a Allow LSP to process multiple messages per poll
(cherry-picked from commit e2485044a1)
2024-04-25 11:47:51 +02:00
ed952f82bd Add is_zero_approx methods to Vector{2,3} 2024-04-10 19:02:42 +08:00
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
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
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
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
1e7c60174e fix crash on mat creation after orm refactor 2024-02-16 20:51:27 +01:00
90b83e77a6 [3.x] GDNative: Fix Linux arm32 warning about ignored sysv_abi attribute 2024-02-15 14:30:03 +01:00
b9cbffd957 add ORMSpatialMaterial 2024-02-08 20:34:11 +01:00
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
e922e49b13 [3.x] GDScript: Fix get_method_list for custom functions 2024-02-07 10:10:32 +03:00
8b79135538 Add MergeGroup node to simplify merging Meshes at runtime 2024-01-31 08:28:51 +00:00
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
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
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
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
ee4396809c [C#] Fix Encloses failing on shared upper bound for AABB and Rect2 2024-01-16 20:19:43 +01:00
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
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
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
05624ddbc8 Fix incorrect Rect2 size when Transform2D * operator. 2023-12-23 02:39:07 +00:00
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
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
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
ee883cea40 Merge pull request #85521 from dsnopek/webxr-fix-ar-position-godot3
[3.x] Fix touch events in WebXR with an "immersive-ar" session
2023-12-08 15:42:53 +01:00
02e4e208ef Fix various GCC 13 warnings
Fixes occurrences of `-Wtype-limits`, `-Wmaybe-uninitialized`,
`-Wduplicated-branches`.
2023-12-08 15:32:59 +01:00
52b32ed533 GDNative: Fix Linux arm64 warning about ignored sysv_abi attribute
Fixes #41160.
2023-12-08 13:16:03 +01:00
5b8a1314bd SCons: Fix Linux arm64 build for theora and libvpx
The architecture handling in 3.x is all over the place, and I'm not
going to start a major refactor like I did for 4.0 so late in its life
cycle.

So let's add more hacks! ⚔️

This requires manually passing `arch=arm64` when compiling, but this is
already the case for other parts of the codebase.
2023-12-08 12:56:52 +01:00
45c76995dd Fix arm64 build when using Clang
The commit b5a8055b5c should target GCC builds only as
-flax-vector-conversions has different behaviour in Clang and is
currently making the build fail.

Signed-off-by: Filipe Rinaldi <filipe.rinaldi@gmail.com>
(cherry picked from commit 2841144096)
2023-12-08 12:32:51 +01:00
dede8d384f embree: Fix Linux ARM64 build with -flax-vector-conversions
This is a change done upstream in the `devel3` branch for 3.13.6:
82ca6b5ccb

They also seem to define it for macOS, but for us it breaks the build...
¯\_(ツ)_/¯

Also change wrong use of CPPFLAGS (pre-processor) where CXXFLAGS (C++)
makes more sense.

(cherry picked from commit b5a8055b5c)
2023-12-08 12:32:14 +01:00
5ea11fb481 Fix touch events in WebXR with an "immersive-ar" session 2023-11-29 14:54:45 -06:00
e236747b31 Merge pull request #84475 from timothyqiu/3.x-image-links
[3.x] Fix image links to `godot-docs` repository
2023-11-14 11:37:42 +01:00
42dda76296 Merge pull request #83869 from rarysson/fix-3.x-build
[3.x] Add missing include header to FBXCommon.h
2023-11-14 11:37:30 +01:00
b5081afc55 Merge pull request #83064 from jasonwinterpixel/3.x-gdscript-parser-faster-autoload
[3.x] Optimize GDScript parser for checking if an identifier is an autoload
2023-11-14 11:37:20 +01:00
1ba1d46740 Merge pull request #81574 from BlueCube3310/3x-dds-grayscale-fix
[3.x] Fix grayscale DDS loading
2023-11-14 11:37:07 +01:00
5302868446 Fix image links to godot-docs repository 2023-11-05 16:53:53 +08:00
db29b32cd6 Add missing include header to FBXCommon.h 2023-10-23 21:11:45 -03:00
4285c44b47 Far faster and more efficient method of checking if an identifer refers an autoload. 2023-10-23 12:13:12 -06:00
22c9ac1540 [3.x] Add --lsp-port as a command line argument 2023-09-20 23:59:50 -05:00
7aa0ce5702 [3.x] Fix grayscale dds loading 2023-09-12 15:22:42 +02:00