1
0
Fork 0
Commit Graph

11613 Commits

Author SHA1 Message Date
Gio 220f2611cc
basis_universal: Make tinyexr dependency explicit 2024-11-29 22:32:04 +01:00
Rémi Verschelde 56a7dba10b
Merge pull request #99799 from akien-mga/fix-typos
Fix various typos and code style issues
2024-11-29 22:02:53 +01:00
Rémi Verschelde 6f4cb10321
Merge pull request #99646 from smix8/navmap_sync_dirty
Make NavMap objects request sync only on demand
2024-11-29 22:02:14 +01:00
Rémi Verschelde d14672863b
Merge pull request #99556 from ArchercatNEO/miniupnpc-include
Fix broken includes when compiling with `builtin_miniupnpc=false`
2024-11-29 22:02:10 +01:00
Rémi Verschelde f4f6f5fb55
Merge pull request #99537 from BlueCube3310/betsy-bc1-bc5
Betsy: Add BC3 and BC5 support
2024-11-29 22:02:06 +01:00
Rémi Verschelde b3a44a5567
Merge pull request #99490 from dalexeev/gds-tests-track-multiple-errors
GDScript: Support tracking multiple analyzer and runtime errors in tests
2024-11-29 22:02:02 +01:00
Rémi Verschelde c814493e95
Merge pull request #94321 from fire/vsk-csg-manifold-update-4.3
Fix mesh corruption of CSG by using elalish/manifold
2024-11-29 22:01:44 +01:00
Kiro 4f17a7428b polygons_get_closest_point_info use edge check instead of triangulation 2024-11-29 16:00:04 +01:00
rune-scape 9f8fec39f3
GDScript: Add error messages to some compilation errors 2024-11-29 15:37:32 +01:00
Danil Alexeev bd1a35ce9e
Core: Fix `JSON.{from,to}_native()` issues 2024-11-29 12:43:06 +03:00
Rémi Verschelde 88e81ee730
Fix various typos and code style issues 2024-11-28 17:40:42 +01:00
K. S. Ernest (iFire) Lee fda444bb01 Add csg boolean operators using elalish/manifold.
Uses MeshGL64 for more floating point precision.

Co-Authored-By: 31 <31eee384@gmail.com>
Co-Authored-By: Claudio Z <120678869+cloudofoz@users.noreply.github.com>
2024-11-28 06:26:52 -08:00
Thaddeus Crews ed01f5f2aa
Merge pull request #98670 from DarioSamo/rd-transient-targets
Automatically resolve initial and final action for draw lists.
2024-11-27 10:47:29 -06:00
Thaddeus Crews 6eca2aa8d6
Merge pull request #99295 from HolonProduction/yet-another-lsp-violation
LSP: Fix spec violations that break the VSCode outline
2024-11-27 10:47:18 -06:00
Thaddeus Crews c5cd7c66ee
Merge pull request #85443 from smix8/gridmap_castshadows
Add ShadowCastingSetting to MeshLibrary / GridMap items
2024-11-27 10:47:10 -06:00
Thaddeus Crews 7ddc076b24
Merge pull request #99600 from Spartan322/permit/non-spec-dds
Round DDS width/height to next divisor multiple for block compression
2024-11-27 10:46:53 -06:00
Thaddeus Crews 4e079ee733
Merge pull request #99459 from bruvzg/svg_font_fix
Fix SVG font rendering.
2024-11-27 10:46:49 -06:00
ArchercatNEO 84bf1cc7ac Fix broken includes when compiling with builtin_miniupnpc=false
Fixes #99196
Supersedes #99218
2024-11-27 15:37:54 +00:00
Fabio Alessandrelli 95401f0753 [WebSocket] Clarify that connect_to_url is non-blocking 2024-11-27 13:31:28 +01:00
Fabio Alessandrelli f511ef26f1 [MP] Move OfflineMultiplayerPeer docs to the module
Was missing from the module config, causing the XML to be added to the
main doc folder
2024-11-27 13:18:33 +01:00
BlueCube3310 88ffe07de9 Betsy: Add BC3 and BC5 support 2024-11-27 12:27:05 +01:00
smix8 612981c1ea Add ShadowCastingSetting to MeshLibrary / GridMap items
Adds ShadowCastingSetting to MeshLibrary / GridMap items.
2024-11-27 01:06:21 +01:00
smix8 ba5a3577a5 Make NavMap objects request sync only on demand
Replaces brute-force sync check loop with a self-listing system where each object is responsible for its own dirty sync, requesting it on demand only.
2024-11-27 01:00:07 +01:00
Thaddeus Crews 13d59b28c1
Merge pull request #99563 from akien-mga/fix-projection-stringification
Fix stringification of Projection
2024-11-26 13:04:58 -06:00
Thaddeus Crews 78b2a53815
Merge pull request #99626 from smix8/performance_data
Change navigation map performance monitor to use a struct
2024-11-26 13:04:50 -06:00
Danil Alexeev a73573b093
GDScript: Add disassembling implicit and lambda functions 2024-11-26 17:07:21 +03:00
Rémi Verschelde f2f48aaf36
Fix stringification of Projection 2024-11-25 21:10:32 +01:00
Thaddeus Crews 9b5c7e9efa Merge pull request #99545 from KoBeWi/Vector4.0
Fix stringification of Vector4
2024-11-25 13:22:33 -06:00
Thaddeus Crews 29e6ef4277 Merge pull request #99597 from Faless/upnp/custom_instance
[UPNP] Allow disabling UPNP implementation on the Web
2024-11-25 13:22:27 -06:00
Spartan322 e297506365
Round DDS width/height to next divisor multiple for block compression 2024-11-25 12:55:05 -05:00
Dario 6d5ac8f7ef Resolve load and store ops automatically for render passes for discardable textures. 2024-11-25 11:27:48 -03:00
smix8 37c3907d0e Change navigation map performance monitor to use a struct
Changes navigation map performance monitor to use a struct as it is easier to pass to sub functions.
2024-11-24 13:27:45 +01:00
Fabio Alessandrelli 0df602afed [UPNP] Allow disabling UPNP implementation on the Web
Make UPNP classes custom instance, so they can come with empty
implementation on the Web (where the would not work anyway) without
breaking scripts referencing it.

This results in smaller Web builds by not including the library which
also results in the emscripten socket wrappers to be stipped away.
2024-11-23 20:17:28 +01:00
Rudolph Bester 4089a6cb8c Fixed occlusion culling for double builds by enforcing float conversion for Embree. 2024-11-23 13:49:12 +02:00
Thaddeus Crews ea3154a0d4 Merge pull request #99424 from dalexeev/core-fix-builtin-enum-const-binds
Core: Fix built-in enum constant bindings
2024-11-22 14:54:31 -06:00
Thaddeus Crews dcb59f0e7e Merge pull request #99548 from Repiteo/style/clang-format-19-options
Style: Add 19.1.0 LLVM options to `.clang-format`
2024-11-22 14:54:29 -06:00
Thaddeus Crews 757a1d3c90 Merge pull request #99102 from Lazy-Rabbit-2001/autocompletion-optimization
Improve GDScript autocompletion for methods
2024-11-22 14:54:16 -06:00
Thaddeus Crews fae3a28628 Merge pull request #99485 from raulsntos/dotnet/dictionary-compat
[.NET] Preserve no-hint behavior for unmarshallable generics in dictionaries
2024-11-22 14:54:15 -06:00
Thaddeus Crews f2763b23cf Merge pull request #99483 from badsectoracula/cancel_lightmap_bake
Add lightmap bake cancelling
2024-11-22 14:54:14 -06:00
kobewi e210313045 Fix stringification of Vector4 2024-11-22 21:44:30 +01:00
Thaddeus Crews e8a4b45ce4
Style: Add 19.1.0 LLVM options to `.clang-format` 2024-11-22 09:24:32 -06:00
Danil Alexeev 03b05cf9ac
Core: Fix built-in enum constant bindings 2024-11-22 14:03:21 +03:00
Lazy-Rabbit-2001 ae853e1a42 Improve GDScript autocompletion for methods 2024-11-22 18:24:45 +08:00
Thaddeus Crews 579c19a9ce
Merge pull request #99274 from shana/vsproj-calculate-dependencies
Use scons to calculate all the sources needed for vsproj generation.
2024-11-21 17:56:50 -06:00
Pāvels Nadtočajevs 7f37e88658 Fix SVG font rendering. 2024-11-21 22:11:53 +02:00
Raul Santos 4e5080d805
[.NET] Preserve no-hint behavior for unmarshallable generics in dictionaries 2024-11-21 20:38:55 +01:00
Bad Sector 5bca028e2b Add lightmap bake cancelling 2024-11-21 21:31:02 +02:00
Danil Alexeev f86dcd4e67
GDScript: Support tracking multiple analyzer and runtime errors in tests 2024-11-21 22:09:50 +03:00
Chaosus 0524e29b5c Fix crash when division by zero/modulo by zero happen on vectors 2024-11-21 20:24:43 +03:00
Andreia Gaita 84db024f6f Use scons to calculate all the sources needed for vsproj generation.
Scons knows every file - sources, headers, etc - that the binary depends on,
and trying to figure that out manually is just too prone to error.
2024-11-21 11:11:35 +01:00
Thaddeus Crews d6ec81af77
Merge pull request #99354 from Nodragem/fix-hidden-gizmo-at-startup
GridMap: Fix hidden gizmo at start-up
2024-11-19 15:20:15 -06:00
Thaddeus Crews ec7fd4f6f1
Merge pull request #97894 from paulloz/dotnet/export-tool-button
Implement `[ExportToolButton]`
2024-11-19 15:20:07 -06:00
Thaddeus Crews dd0c24bcd3
Merge pull request #99137 from KoBeWi/uideal_scenario
Handle scene UIDs in MultiplayerSpawner
2024-11-19 15:20:00 -06:00
Paul Joannon 4f52c2bb1f
Implement [ExportToolButton] 2024-11-18 20:19:47 +01:00
Thaddeus Crews 1c1e833a43
Merge pull request #99376 from clayjohn/basisu-defer-init
Defer initializing BasisU encoder until it is needed
2024-11-18 09:23:35 -06:00
Thaddeus Crews 1889d2a264
Merge pull request #99206 from a-johnston/fix_double_diagnostic
Remove duplicate read/write-only property warning from ScriptPropertiesGenerator
2024-11-18 09:23:30 -06:00
Bad Sector f37c72fcdc Update gridmap editor cursor and selection node transformations whenever the gridmap node's transformation changes 2024-11-18 14:55:19 +02:00
clayjohn 985dc61386 Defer initializing BasisU encoder until it is needed.
This saves a lot of time on startup
2024-11-17 14:03:20 -08:00
Nodragem f5871c18bf fix hidden gizmo at start-up 2024-11-17 13:03:19 +00:00
A Thousand Ships 68f638cf02
Use `(r)find_char` instead of `(r)find` for single characters 2024-11-17 10:02:18 +01:00
colinator27 0a4dd371b7 Implement get_bar_beats() for AudioStreamSynchronized, fix division by zero 2024-11-16 11:44:53 -05:00
HolonProduction 2f620db1d8 LSP: Fix spec violations that break the VSCode outline 2024-11-15 20:00:28 +01:00
Thaddeus Crews e4608dd6c2
Merge pull request #98138 from CrayolaEater/better-explanation-mp-sync
Better explanation for replication interval and delta interval (MultiplayerSynchronizer)
2024-11-15 10:42:47 -06:00
Thaddeus Crews e9ce3932b3
Merge pull request #98099 from dalexeev/pot-gen-add-comment-support
POT Generator: Add support for `TRANSLATORS:` and `NO_TRANSLATE` comments
2024-11-15 10:42:45 -06:00
Thaddeus Crews 03863f117f
Merge pull request #99276 from kiroxas/fixBrokenNavigationObstacle2D
Fix broken Navigation Obstacle regression
2024-11-15 10:42:39 -06:00
Kiro 3a946aaa73 fixed navigation obstacle carving broken during 07b7f76 2024-11-15 13:47:47 +01:00
HolonProduction a389eb4608 Add back `AnimationPlayer.get_argument_options` 2024-11-15 13:06:59 +01:00
Bogdan Inculet f72b841390 Better explanation for the replication interval and delta interval in the MultiplayerSynchronizer node 2024-11-15 02:46:10 +02:00
kobewi 88b3090745 Handle scene UIDs in MultiplayerSpawner 2024-11-14 23:41:58 +01:00
Chaosus f3344b71b1 Fix incorrect order: `TTR(vformat` instead of `vformat(TTR` 2024-11-14 11:37:17 +03:00
Adam Johnston 186f35fc9b remove duplicate read/write only property warning from ScriptPropertiesGenerator 2024-11-13 14:23:53 -08:00
PhairZ 8c4a9ad626 fix fade_beats defined as int in audio_stream_interactive.h 2024-11-13 19:51:38 +02:00
Thaddeus Crews ad97ef8c9b
Merge pull request #99170 from Nodragem/fix-gridmap-action-shortcut-3deditor-conflict
Fix Gridmap shortcut conflicts with 3d editor
2024-11-13 08:34:28 -06:00
Nodragem b811e0a73e fix shortcut conflicts with 3d editor
Now the action shorcuts (A,S,D,Z,X,C) are going through the right processing and their events are captured so they are not passed to the 3D editor. This avoids conflicts/weird behaviours if the users has set up shortcuts on these keys.
2024-11-13 11:53:48 +00:00
Bastiaan Olij 3de62b8b1b OpenXR: Fix pose recenter signal to be omitted properly 2024-11-13 14:20:06 +11:00
Thaddeus Crews 4d4353179e
Merge pull request #97218 from wenqiangwang/local_debuggger_expr_evalulation
Add support for `print` command in local (command line `-d`) debugger
2024-11-12 12:13:13 -06:00
Thaddeus Crews f1d31304b2
Merge pull request #99002 from Mickeon/documentation-more-miscellaneous-oddities
Fix more miscellaneous oddities around the class reference
2024-11-12 12:13:10 -06:00
Thaddeus Crews 21ed92273d
Merge pull request #98995 from Faless/mbetls/insestent_io
[mbedTLS] Keep reading/writing partial until "would block"
2024-11-12 12:13:09 -06:00
Micky eaebb3f864 Fix more miscellaneous oddities around the class reference 2024-11-12 17:44:45 +01:00
Fabio Alessandrelli 3114bda4e1 [WS] Implement wslay unbuffered message parsing
Ensure we never read more than we can store during poll.

Raise default max packets to 4096 to maintain the same performance for
the first 2048 packets.
2024-11-12 17:19:39 +01:00
Thaddeus Crews caff0ff591
Merge pull request #97913 from Faless/fix/websocket_closing_transition
[WS] Detect disconnection due to protocol errors
2024-11-12 09:28:15 -06:00
Thaddeus Crews e960aa319f
Merge pull request #99030 from tracefree/obstacle_2d_transform
Make use of NavigationObstacle2D's transform
2024-11-12 09:28:03 -06:00
Thaddeus Crews 2c31bd767c
Merge pull request #99020 from Mickeon/documentation-example-pruning-2
Clean up more `[b]Example:[/b]` lines from the class reference
2024-11-12 09:28:02 -06:00
Thaddeus Crews b85a4752cc
Merge pull request #91707 from Faless/ws/heartbeat
[WebSocket] Add optional heartbeat via "ping" control frames.
2024-11-12 09:27:56 -06:00
Thaddeus Crews 8ab86bb780
Merge pull request #98616 from dalexeev/doc-nested-subgroups
Document exporting nested subgroups
2024-11-12 09:27:55 -06:00
Thaddeus Crews 0dd003d7d2
Merge pull request #98467 from zaevi/fix_csharp_stringname_leak
C#: Fix StringName leak when converting `Variant` to `Signal` / `Callable`
2024-11-12 09:27:49 -06:00
Thaddeus Crews e66d9988a6
Merge pull request #95774 from Mickeon/documentation-miscellaneous-oddities
Fix miscellaneous oddities around the class reference
2024-11-12 09:27:47 -06:00
Thaddeus Crews 2705202ebb
Merge pull request #98459 from zaevi/fix_csharp_signal_parameters
C#: Escape signal parameters
2024-11-12 09:27:43 -06:00
Thaddeus Crews da094b0312
Merge pull request #99088 from Mickeon/documentation-truth-oopsie-last-one
Fix untagged `true` in GLTFState's documentation
2024-11-12 09:27:38 -06:00
Rie e39fc3e8c2 Make use of NavigationObstacle2D's transform 2024-11-11 23:34:47 +01:00
Thaddeus Crews 66fb0cd9f7
Merge pull request #89051 from Calinou/csharp-vscode-add-codium-support
Add Codium support to C# external editors
2024-11-11 14:18:34 -06:00
Thaddeus Crews 848d90837e
Merge pull request #96730 from tracefree/properly_transforming_obstacles
Make use of NavigationObstacle3D's transform
2024-11-11 14:18:33 -06:00
Thaddeus Crews 2ed6d12652
Merge pull request #97363 from reduz/deterministic-gen-suberesources-id
Allow passing UID to importer
2024-11-11 14:18:30 -06:00
Thaddeus Crews 6577ed278a
Merge pull request #97471 from kevinkuo52/debug-raycast-heightmap
[GodotPhysics] Fix raycasts don't reliably collide with HeightMapShape3D
2024-11-11 14:18:20 -06:00
Thaddeus Crews 9be806aef1
Merge pull request #92986 from Repiteo/core/ref-instantiate-integration
Core: Integrate Ref `instantiate` where possible
2024-11-11 14:18:15 -06:00
Thaddeus Crews def34fb06e
Merge pull request #98472 from rune-scape/sort-rpc
SceneRPCInterface: Sort rpc names using `StringLikeVariantOrder`
2024-11-11 14:18:07 -06:00
Thaddeus Crews 3c1570721f
Merge pull request #94751 from RadiantUwU/patch-2
GLTF: Return the error file path when an import fails.
2024-11-11 14:18:05 -06:00
Thaddeus Crews 9502f6faf4
Merge pull request #96922 from Nodragem/moving-gridmap-panel-one-commit
Move GridMapEditor to bottom panel
2024-11-11 14:18:03 -06:00
Micky cc57a80a89 Fix untagged `true` in GLTFState's documentation 2024-11-11 20:45:52 +01:00
Danil Alexeev 4d3e2c78b6
Document exporting nested subgroups 2024-11-11 17:24:37 +03:00
Juan fe34c45d2a
Allow passing UID to importer
This helps, for importers spitting out new resources to the res://
filesystem to actually hash them to generate deterministic UIDs.

This PR also fixes the determinism for translations.
2024-11-11 15:22:42 +01:00
Kiro 07b7f76896
Improve `NavMeshGenerator2D::generator_bake_from_source_geometry_data` performance
Avoid copies and redundant work.
2024-11-11 12:31:19 +01:00
Micky 932b1c434c Clean up more `[b]Example:[/b]` lines from the class reference 2024-11-11 12:05:34 +01:00
Thaddeus Crews 925b690c98
Core: Integrate `Ref::instantiate` where possible 2024-11-10 12:41:26 -06:00
Thaddeus Crews 4703aab556
Merge pull request #98919 from BlueCube3310/bcdec-fix-v4
bcdec: Fix decompressing mipmaps not divisible by 4
2024-11-10 12:12:58 -06:00
Thaddeus Crews 3444611507
Merge pull request #98758 from Rudolph-B/Issue-98756
Fix Occlusion Culling Buffer occasionally getting corrupted.
2024-11-10 12:12:43 -06:00
Thaddeus Crews 511149e2a0
Merge pull request #99003 from Mickeon/documentation-interactive-music-oopsie
Fix interactive music docs saying it's "not implemented"
2024-11-10 12:12:40 -06:00
Thaddeus Crews 95780d8104
Merge pull request #98866 from smix8/navmap_allocation
Reduce allocations for NavMap synchronisation
2024-11-10 12:12:37 -06:00
Thaddeus Crews 06e876b990
Merge pull request #95762 from Mickeon/documentation-truth-and-only-the-truth
Fix many untagged `true`/`false`/`null` in the documentation
2024-11-10 12:12:22 -06:00
Thaddeus Crews cd6dad4090
Merge pull request #98703 from pgrit/master
Set flag for 8 bone weights in GLTFDocument
2024-11-10 12:12:18 -06:00
Rie 44ef3d35eb Make use of NavigationObstacle3D's transform
Co-authored-by: a0kami <dev.aokami@netc.fr>
2024-11-10 17:08:12 +01:00
Micky 39534e1a28 Fix interactive music docs saying it's "not implemented" 2024-11-10 11:35:08 +01:00
Micky 5c5460b026 Fix many untagged true/false/null in the documentation 2024-11-10 11:26:39 +01:00
Fabio Alessandrelli 35c223680a [mbedTLS] Keep reading/writing partial until "would block"
Them mbedTLS read and write functions will never read or write more than
the negotiated fragment length at every iteration (which usually depends
on MBEDTLS_SSL_IN_CONTENT_LEN and MBEDTLS_SSL_OUT_CONTENT_LEN).

For this reason, when reading or writing partial data, we must always
keep retrying until we receive a "would block" (no bytes read or wrote),
or we have fulfilled the read or write.
2024-11-09 17:20:10 +01:00
Nodragem 7378bb6db7 Move GridMapEditor to bottom panel 2024-11-09 16:02:26 +00:00
BlueCube3310 ca7ad58236 bcdec: Fix decompresssing mipmaps not divisible by 4 2024-11-08 11:17:13 +01:00
Thaddeus Crews 3a7efc9edf
Merge pull request #98874 from aaronfranke/gltf-preserve-visibility
GLTF: Preserve node visibility on import
2024-11-07 12:36:35 -06:00
Thaddeus Crews 9b23b202ae
Merge pull request #98873 from girdenis-p/shadowed-variable-warning
Fix analyzer pushing `SHADOWED_VARIABLE` warning for members shadowed in subclass
2024-11-07 12:36:33 -06:00
Thaddeus Crews 671d6e3230
Merge pull request #98150 from hunterloftis/fix-default-import-threaded
Fix freeze on non-thread-safe custom importers
2024-11-07 12:36:20 -06:00
Fabio Alessandrelli e2d62f8618 [WebSocket] Add optional heartbeat via "ping" control frames.
Has no effect in Web exports since the browsers do not expose a way to
send ping control frames.
2024-11-07 15:18:46 +01:00
girdenis-p 413490c270 Fix analyzer pushing SHADOWED_VARIABLE warning for members shadowed in subclasses
This fixes a bug in the analyzer where it did not push the SHADOWED_VARIABLE_BASE_CLASS
warning for members shadowed by variable in subclass. It does this by comparing the class
which contains the shadowed member with the class containing the variable, and pushing
SHADOWED_VARIABLE only if the classes are the same. Additionally, SHADOWED_VARIABLE_BASE_CLASS
can take an extra symbol which helps to specify the line for non native base class.
2024-11-06 15:04:14 +00:00
Aaron Franke 924732772b
GLTF: Preserve node visibility on import 2024-11-05 19:06:08 -08:00
Thaddeus Crews de48d9f794
Merge pull request #98841 from bruvzg/ts_el_load
[TextServer] Only load ellipsis glyph when it's used.
2024-11-05 18:36:17 -06:00
Thaddeus Crews 88a48d52f0
Merge pull request #98801 from zeux/my-final-form
Rewrite index optimization code for maximum efficiency
2024-11-05 18:36:13 -06:00
Thaddeus Crews 1559645112
Merge pull request #98831 from dsnopek/openxr-gdextension-pre-post-draw-viewport
OpenXR: Allow GDExtensions to implement `_on_pre_draw_viewport()` and `_on_post_draw_viewport()`
2024-11-05 18:36:12 -06:00
smix8 b840c9837a Reduce allocations for NavMap synchronisation
Improves navigation map sync performance be avoiding unnecessary memory allocations.
2024-11-05 22:10:53 +01:00
David Snopek c72eb04adb OpenXR: Allow GDExtensions to implement `_on_pre_draw_viewport()` and `_on_post_draw_viewport()` 2024-11-05 08:16:29 -06:00
Aaron Franke 109bee08dd
Blend file import: Don't keep original files when not unpacking them 2024-11-05 04:00:46 -08:00
bruvzg 4daa336d92 [TextServer] Only load ellipsis glyph when it's used. 2024-11-05 11:04:48 +02:00
Thaddeus Crews 2450dee1bc
Merge pull request #93401 from Repiteo/style/clang-tidy-fixes
Style: Apply `clang-tidy` fixes
2024-11-04 21:52:05 -06:00
Thaddeus Crews ef8aafc2df
Merge pull request #94165 from aaronfranke/gltf-khr-anim-ptr
GLTF: Implement `KHR_animation_pointer` for animating custom properties
2024-11-04 21:52:03 -06:00
Thaddeus Crews e38068f768
Merge pull request #96778 from aaronfranke/gltf-dont-fail-import
GLTF: Don't give up loading a texture if importing it fails
2024-11-04 21:51:56 -06:00
Thaddeus Crews 6206578060
Merge pull request #90182 from Zylann/nav_map_optimizations
Optimize some parts of `NavMap::sync`
2024-11-04 21:51:52 -06:00
Aaron Franke 02d8c6eefe
GLTF: Add extract_path and extract_prefix settings
Only used by the Blender importer
2024-11-04 19:28:33 -08:00
Aaron Franke 0b7354dfa9
GLTF: Don't give up loading image if import fails 2024-11-04 19:28:18 -08:00
Aaron Franke 0513943f70
GLTF: Implement KHR_animation_pointer for animating custom properties 2024-11-04 17:55:40 -08:00
Aaron Franke d373d207c1
GLTF: Add functions to encode and decode Variants to/from accessors 2024-11-04 17:55:40 -08:00
Aaron Franke 11576b89dd
GLTF: Implement the glTF Object Model in physics extension 2024-11-04 17:55:39 -08:00
Aaron Franke 4b66a25f52
GLTF: Implement the glTF Object Model to support JSON pointer properties 2024-11-04 17:55:39 -08:00
Aaron Franke cd367b3da3
GLTF: Prerequisite cleanups before KHR_animation_pointer
Add get_scene_node_path and has_additional_data to GLTFNode, remove center of mass ignore warning in physics (it's supported now), rename `d` to `mesh_dict` in mesh import code.
2024-11-04 17:55:39 -08:00
Aaron Franke 834189a618
GLTF: Clean up animation code to make way for KHR_animation_pointer 2024-11-04 17:55:38 -08:00
Aaron Franke c7391d2ee3
GLTF: Add more accessor component types 2024-11-04 17:55:38 -08:00
Aaron Franke 4b0085ac85
GLTF: Move the component type enum into GLTFAccessor 2024-11-04 17:55:37 -08:00
Thaddeus Crews bb5f390fb9
Style: Apply `clang-tidy` fixes (superficial)
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
2024-11-04 12:11:14 -06:00
Thaddeus Crews 89a311205f
Style: Apply `clang-tidy` fixes
• `modernize-use-default-member-init` and `readability-redundant-member-init`
• Minor adjustments to `.clang-tidy` to improve syntax & remove redundancies
2024-11-04 12:11:06 -06:00
Arseny Kapoulkine 260287b3a1 Rewrite index optimization code for maximum efficiency
While all the previous fixes to optimizeVertexCache invocation fixed the
vertex transform efficiency, the import code still was missing two
crucial recommendations from meshoptimizer documentation:

- All meshes should be optimized for vertex cache (this reorders
  vertices for maximum fetch efficiency)
- When LODs are used with a shared vertex buffer, the vertex order
  should be generated by doing a vertex fetch optimization on the
  concatenated index buffer from coarse to fine LODs; this maximizes
  fetch efficiency for coarse LODs

The last point is especially crucial for Mali GPUs; unlike other GPUs
where vertex order affects fetch efficiency but not shading, these GPUs
have various shading quirks (depending on the GPU generation) that
really require consecutive index ranges for each LOD, which requires the
second optimization mentioned above. However all of these also help
desktop GPUs and other mobile GPUs as well.

Because this optimization is "global" in the sense that it affects all
LODs and all vertex arrays in concert, I've taken this opportunity to
isolate all optimization code in this function and pull it out of
generate_lods and create_shadow_mesh; this doesn't change the vertex
cache efficiency, but makes the code cleaner. Consequently,
optimize_indices should be called after other functions like
create_shadow_mesh / generate_lods.

This required exposing meshopt_optimizeVertexFetchRemap; as a drive-by,
meshopt_simplifySloppy was never used so it's not exposed anymore - this
will simplify future meshopt upgrades if they end up changing the
function's interface.
2024-11-04 06:58:06 -08:00
Fabio Alessandrelli 6cdfc8c9fe [WS] Detect disconnection due to protocol errors
When wslay receives a message that is too big or cause a protocol error,
it automatically sends a close request to the remote peer but it also
completely stop calling the receive callback resulting in the state
being "stuck" as CONNECTED (even if both client and server have
disconnected).

We now check if we sent a close message and reading has been disabled to
manually transition to the "closed" state with the proper reason.
2024-11-04 11:20:30 +01:00
Rudolph Bester 0f0e24016c Fix Occlusion Culling Buffer getting corrupted. 2024-11-02 12:52:19 +02:00
Hugo Locurcio 9f2bd57b7b
Add Codium support to C# external editors
Selecting the VS Code option will now work if Codium is installed,
picking it as the last option after attempting to run VS Code.
2024-11-02 00:00:41 +01:00
bruvzg e81a2afbc4
[TextServer] Reset subpixel shift on blank glyphs and import option to enable/disable it. 2024-11-01 10:18:57 +02:00
Thaddeus Crews 363c0b5fec
Merge pull request #47502 from KoBeWi/add_0
Always add decimal when converting float to string
2024-10-31 20:14:39 -05:00
Pascal Grittmann a59fb07e4a set flag for 8 bone weights 2024-10-31 17:04:31 +01:00
Radiant 5b0bf9e2b0 Return the actual error when an import fails. 2024-10-30 23:42:10 +02:00
Thaddeus Crews 8004c7524f
Merge pull request #98301 from aaronp64/gdscript_validate_property
Avoid unnecessary `Dictionary` conversions in `GDScriptInstance::validate_property`
2024-10-29 19:26:02 -05:00
Thaddeus Crews 696ca9db3c
Merge pull request #98039 from aaronfranke/button-icon
Rename internal Button `*_icon` functions to `*_button_icon` to match exposed methods
2024-10-29 19:25:59 -05:00
Thaddeus Crews 49cf7996e1
Merge pull request #98496 from bruvzg/icu761
Update ICU to 76.1
2024-10-29 19:25:49 -05:00
Thaddeus Crews 23f03a7cce
Merge pull request #98589 from juanjp600/openxr-no-wayland-build-fix
Fix OpenXR module failing to build on Linux when Wayland is disabled
2024-10-29 19:25:41 -05:00
Thaddeus Crews b7a0971ad2
Merge pull request #97934 from adamscott/give-AThousandShips-a-break
[Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
2024-10-29 19:25:36 -05:00
Thaddeus Crews 64b68192cc
Merge pull request #98562 from Rudolph-B/Issue-98561
Fix Occlusion Culling not working for an orthogonal camera.
2024-10-29 19:25:34 -05:00
Aaron Franke 562c666e3d
Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
Clay John 0debc73dc6
Merge pull request #98322 from BlueCube3310/dds-layered-importer
DDS: Add support for loading layered textures
2024-10-29 15:20:54 -07:00
BlueCube3310 06195cdf2c DDS: Add support for loading layered textures 2024-10-29 20:55:22 +01:00
Juan Pablo Arce 1803fe0cd5 Fix OpenXR module failing to build on Linux when Wayland is disabled 2024-10-27 14:03:03 -03:00
Rudolph Bester 76c20383d1 Fix Occlusion Culling not working for an orthogonal camera. 2024-10-26 20:07:34 +02:00
Thaddeus Crews 61accf0605
Merge pull request #97535 from HolonProduction/gizmo-cylinder
Editor: Improve cylinder gizmos
2024-10-25 13:04:14 -05:00
Thaddeus Crews 2584f75537
Merge pull request #96499 from beev1s/shallow-script-cache-error
Fix resource loader not resolving shallow loaded scripts through dependencies
2024-10-25 13:04:09 -05:00
Thaddeus Crews 07e759b74a
Merge pull request #97771 from dsnopek/openxr-linux-egl
OpenXR: Add support for Wayland on Linux
2024-10-25 13:04:08 -05:00
Thaddeus Crews 7da6d6032b
Merge pull request #96927 from HolonProduction/completion-inner-class-base-crash
Autocompletion: Don't use owner for inner classes
2024-10-25 13:03:53 -05:00
Adam Scott 0d350e7108
Set clang-format `RemoveSemicolon` rule to `true`
- Set clang-format `Standard` rule to `c++20`
2024-10-25 13:49:43 -04:00
Danil Alexeev 4dc568856a
GDScript: Rework `GDScriptUtilityFunctions` macros 2024-10-25 17:46:38 +03:00
Clay John 78a4e634f0
Merge pull request #98257 from Rudolph-B/94210-B
Fix to occlusion culling where all math is based on Euclidean distance.
2024-10-24 21:06:56 -07:00
Clay John b5368d5e40
Merge pull request #98356 from dustdfg/gdscript_endif_readability_comments
Add some comments to `#endif's` where it helps readability
2024-10-24 19:11:42 -07:00
Clay John 38f2144f85
Merge pull request #98400 from rune-scape/fix-typed-dict-cached-parser
GDScript: Fix cached parser error when using typed Dictionaries
2024-10-24 18:54:12 -07:00
Clay John 7ebb3a4d68
Merge pull request #98471 from dsnopek/openxr-composition-layers-visibility-bug
Fix bug with OpenXR composition layers added after OpenXR is running
2024-10-24 18:45:23 -07:00
rune-scape 3c8615221a SceneRPCInterface: Sort rpc names using `StringLikeVariantOrder` 2024-10-24 14:16:30 -07:00
bruvzg e698870caa
Update ICU to 76.1 2024-10-24 22:47:59 +03:00
Thaddeus Crews 3c7fb9fe7f
Merge pull request #98169 from HolonProduction/only-highlight-exposed
GDScript: Don't highlight unexposed classes
2024-10-24 13:23:04 -05:00
Thaddeus Crews 8b6c7bf64c
Merge pull request #98163 from BastiaanOlij/openxr_flatten_bindings
OpenXR: change bindings to 'flatten' source paths
2024-10-24 13:23:03 -05:00
Thaddeus Crews 7444da766a
Merge pull request #97374 from rune-scape/get-native-static-callable
GDScriptNativeClass: Allow getting static function as callable
2024-10-24 13:23:01 -05:00
Thaddeus Crews 52bbbd4338
Merge pull request #98247 from TCROC/fix-headless-graphics-driver-and-shader-crash
Don't create rendering device or parse glsl shader in headless mode
2024-10-24 13:22:53 -05:00
Thaddeus Crews 0953d488c7
Merge pull request #98329 from beru/opt_ImageLoaderSVG__create_image_from_utf8_buffer
Optimize ImageLoaderSVG::create_image_from_utf8_buffer
2024-10-24 13:22:44 -05:00
David Snopek e2386de505 Fix bug with OpenXR composition layers added after OpenXR is running 2024-10-23 15:34:05 -05:00
Zae 06df5275c2 C#: Fix StringName leak when converting `Variant` to `Signal` / `Callable` 2024-10-24 00:08:43 +08:00
Zae 2a3d400dd8 C#: Escape signal parameters 2024-10-23 23:24:00 +08:00
kobewi 5c0f2414cd Always add decimal when printing float 2024-10-23 15:00:21 +02:00
Brian Huynh 360b84bad5 Clarification to the description of Global scope in regards to GDScript
Previous wording said that @GDScript referred to entries that could be accessed in any script. Although with common sense we could imagine that it is only refering to GDScript specific pieces of code, the wording is a little unclear.

In general there are small changes to the wording which makes it more clear and concise.
Wording change

Tried to match the wording up with my last change which should make it a bit easier to parse at a glance what the docs mean by "from any script"

Changed language from "not specific to" to "which work in any language"

After consulting multiple people the new wording seems easier to parse, even for non coders

Update doc/classes/@GlobalScope.xml

Update modules/gdscript/doc_classes/@GDScript.xml

Update modules/gdscript/doc_classes/@GDScript.xml

Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com>
2024-10-23 02:10:03 -04:00
Travis Lange 2e1fc241f9 fix headless import attempting to load graphics driver 2024-10-22 16:17:09 -04:00
rune-scape eb8b9898c9 GDScript: Fix cached parser error when using typed Dictionaries 2024-10-22 02:13:16 -07:00
Bastiaan Olij 3e36f52524 OpenXR: change bindings to 'flatten' source paths 2024-10-22 10:31:11 +11:00
Thaddeus Crews 55aeff19dc
Merge pull request #98146 from HolonProduction/this-error-does-not-apply-to-unrecognized-annotations
GDScript: Fix annotation parsing adding new annotation entries
2024-10-21 16:39:24 -05:00
Thaddeus Crews 291e4b78e2
Merge pull request #98237 from dustdfg/os_transitive_image_headers_refactor
Don't include `core/io/image.h` in `core/os/os.h`
2024-10-21 16:39:15 -05:00
Thaddeus Crews cb3c01a5fe
Merge pull request #97588 from TML233/generated-raise-signal
[C#] Change generated On{SignalName} to EmitSignal{SignalName}
2024-10-21 16:39:12 -05:00
Thaddeus Crews 8be0061458
Merge pull request #98340 from juanjp600/dotnet-typed-dictionary-hint-fix
Fix exported typed dictionaries in .NET having an incorrect hint
2024-10-21 16:39:08 -05:00
Thaddeus Crews 5fb22327ee
Merge pull request #97542 from AThousandShips/dict_sort_fix
[Core] Fix sorting of `Dictionary` keys
2024-10-21 16:39:05 -05:00
Yevhen Babiichuk (DustDFG) 8c29ef38fc Add some comments to #endif's where it will easier life
Also added some new line to improve readability

Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
2024-10-21 14:31:45 +03:00
Marc Gilleron a92e1d4a20 Optimize some parts of NavMap::sync 2024-10-19 14:58:49 +01:00
katsuhisa yuasa 4dad9c6c05 optimize ImageLoaderSVG::create_image_from_utf8_buffer 2024-10-19 14:09:34 +09:00
aaronp64 aa1d469ffb Avoid unnecessary Dictionary conversions in GDScriptInstance::validate_property
Updated GDScriptInstance::validate_property to only convert PropertyInfo to Dictionary if _validate_property function is found.
2024-10-18 12:10:19 -04:00
Yevhen Babiichuk (DustDFG) af6d260c17 Don't include `core/io/image.h` in `core/os/os.h`
`core/os/os.h` doesn't use `core/io/image.h`. It just brings
transitive dependencies. Lots of dependencies because `core/os/os.h`
is transitively included in almost every file of godot

Also added `core/io/image.h` into files^1 where `Ref<Image>` and `core/os/os.h`
were used to prevent obscure errors involving `Ref<Image>`

^1 except those which include `core/io/image_loader.h` or `core/io/image.h` by
corresponding .h file with the same name

Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-10-18 19:04:19 +03:00
A Thousand Ships 79f654ced5
[Core] Fix sorting of `Dictionary` keys
`StringName` keys were sorted as `StringName` which is unstable.
2024-10-18 08:47:05 +02:00