1
0
Fork 0
Commit Graph

11832 Commits

Author SHA1 Message Date
Rémi Verschelde 4047e4b894
.NET: Downgrade Microsoft.CodeAnalysis.CSharp to 4.8.0 for compat with SDK 8.0.1xy
And for CI, set up .NET SDK 8.0.100 explicitly to test our min supported version.
2024-12-17 15:56:56 +01:00
K. S. Ernest (iFire) Lee 441c440bf4 Push some warnings for CSG non manifold and other errors.
In the scene tree add warnings.
2024-12-16 12:49:51 -08:00
Bad Sector baf03e4fb6 Expose GridMapEditorPlugin to scripts and add methods to manipulate the selection and selected palette item 2024-12-16 21:31:05 +02:00
Kiro 774e91470c Simplify `NavMeshQueries3D::simplify_path_segment` 2024-12-16 20:05:41 +01:00
Thaddeus Crews 4364ed6ccd
Merge pull request #100471 from dsnopek/openxr-xrsim-composition-layer-crash
OpenXR: Fix crash with composition layers in non-dev builds
2024-12-16 12:10:08 -06:00
Thaddeus Crews 7efe038eed
Merge pull request #97492 from Geometror/profiler-autostart-indicator
Add profiler autostart indicator to EditorRunBar
2024-12-16 12:09:59 -06:00
Thaddeus Crews 02e196eb41
Merge pull request #98132 from aaronfranke/editor-plugin-get-plugin-icon-name
Rename internal EditorPlugin icon/name to match exposed methods
2024-12-16 12:09:57 -06:00
Thaddeus Crews d51fae25a7
Merge pull request #98872 from BastiaanOlij/openxr_khr_metal_enable
OpenXR: Add Metal support
2024-12-16 12:09:47 -06:00
Thaddeus Crews 9c9af038d5
Merge pull request #91060 from dalexeev/code-edit-add-doc-tooltips
Code Editor: Add documentation tooltips
2024-12-16 12:09:45 -06:00
David Snopek 20d8bddd38 OpenXR: Fix crash with composition layers in non-dev builds 2024-12-16 08:44:49 -06:00
Hendrik Brucker 9f8bbe43ee Add profiler autostart indicator to EditorRunBar 2024-12-16 10:15:24 +01:00
Aaron Franke de87ca5084
GLTF: Fix bad pointer to ImporterMeshInstance3D root node at runtime 2024-12-15 18:05:57 -08:00
Aaron Franke 0ab3dc273e
Rename internal EditorPlugin icon/name to match exposed methods 2024-12-15 17:31:01 -08:00
Danil Alexeev 80d11500b5
Code Editor: Add documentation tooltips 2024-12-15 10:51:33 +03:00
Rémi Verschelde 863a24ac86
Merge pull request #100405 from BlueCube3310/bcdec-fix-v200
bcdec: Fix logic for detecting incomplete blocks
2024-12-14 18:25:49 +01:00
smix8 c09855627f Fix GridMap freeing edge connection debug mesh too early
Fixes GridMap freeing edge connection debug mesh too early.
2024-12-14 18:15:28 +01:00
BlueCube3310 8f9673eeff bcdec: Fix logic for detecting incomplete blocks 2024-12-14 17:57:44 +01:00
Thaddeus Crews b68675e518
Merge pull request #100342 from mihe/jolt/thread-safe-rids
Make `RID` allocation thread-safe when using Jolt Physics
2024-12-13 16:19:35 -06:00
Thaddeus Crews c58fbaf751
Merge pull request #100340 from smix8/csg_3d_child_notify
Fix 3D CSG not reacting to child node order changes
2024-12-13 16:19:33 -06:00
Rémi Verschelde 7f5c469292
Merge pull request #92131 from paulloz/net8
C#: Move GodotSharp to .NET8
2024-12-13 15:31:59 +01:00
Paul Joannon fb8553e4d7
Move to .NET8
- Change TFM and LangVersion
- Better exception throwing (CA1510, CA1512, CA1513)
- Better exception utility method definition (CA1859)
- Prefer comparing `.Count` over calling `.Any()` (CA1860)
- Prefer `.AsSpan()` over `.Substring()` (CA1846)
- Add a few more `scoped`
- Use `RuntimeHelpers.GetUninitializedObject()` instead of `FormatterServices.GetUninitializedObject()`
- Use delegate instead of delegate pointer in variant generic conversions
- Enable EnforceExtendedAnalyzerRules in source generator projects
- Disable CS8981 on structs named movable in Godot.NativeInterop
2024-12-13 14:00:13 +01:00
Pedro J. Estébanez 4f8dd96b3d Rationalize busy waits 2024-12-13 10:14:26 +01:00
Raul Santos d526d523b4
[.NET] Fix gradle builds for multiple ABIs
Include the needed .NET jar in the Godot templates so it's always available, then we don't need to include the jar from a .NET publish which could fail when exporting to multiple architectures because it would attempt to add the same jar for each architecture.
2024-12-13 08:01:13 +01:00
Mikael Hermansson f6126badba Make RID allocation thread-safe when using Jolt Physics 2024-12-13 00:39:42 +01:00
smix8 20c519d0fa Fix 3D CSG not reacting to child node order changes
Fixes 3D CSG not reacting to child node order changes.
2024-12-13 00:28:42 +01:00
Thaddeus Crews bfc66f0608
Merge pull request #100282 from devloglogan/motion-vectors-openxr
Add renderer motion vectors API for use with OpenXR
2024-12-12 16:13:36 -06:00
Thaddeus Crews ed8b4ab060
Merge pull request #100337 from akien-mga/scons-sse2-baseline
SCons: Properly set SSE2 as baseline on x86_32
2024-12-12 16:13:31 -06:00
Thaddeus Crews 6acb58d95a
Merge pull request #100331 from akien-mga/jolt-fix-mingw-lto-multiple-definitions
Jolt: Fix multiple definition LTO linking issue with mingw-gcc
2024-12-12 16:13:29 -06:00
Thaddeus Crews 9c290c4c56
Merge pull request #100033 from Daylily-Zeleen/daylily-zeleen/optimize_callable_to_string
Optimize callable's stringify text.
2024-12-12 16:13:23 -06:00
Rémi Verschelde f86b3696f6
SCons: Properly set SSE2 as baseline on x86_32
Setting it only for release templates on Windows and macOS was inconsistent,
and Jolt requires it as a minimum.

Drop the `-mxsave` flag from the raycast module, this doesn't seem to be
used explicitly by Embree, and unnecessarily makes our config and baseline
muddy.
2024-12-12 22:44:44 +01:00
Rémi Verschelde 0ba875ec29
Jolt: Fix multiple definition LTO linking issue with mingw-gcc 2024-12-12 21:31:34 +01:00
RedworkDE f0b6b24d9e
C#: Update to net7.0
Because of ref safety changes in the languages, all methods that return an interop struct have to have all other reference parameters marked as scoped to signal the the method does not capture that reference.

The variant change is necessary, because for some reason a type of the exact shape godot_variant is in, crashes the .NET 7 JIT, but when changing it to be sequential with the same effective layout it works.
2024-12-12 17:42:39 +01:00
Rémi Verschelde 1e1e862204
Merge pull request #98100 from BlueCube3310/image-cleanup-more
Image: More cleanup and reduced code duplication
2024-12-12 14:09:49 +01:00
Rémi Verschelde d1b683d413
Merge pull request #97140 from BastiaanOlij/xr_action_map_enhancements
OpenXR: Add support for binding modifiers
2024-12-12 14:09:41 +01:00
Rémi Verschelde 0e5c337453
Merge pull request #85653 from BlueCube3310/lightmap-gi-shadowmask
Implement LightmapGI shadowmasks
2024-12-12 14:09:30 +01:00
BlueCube3310 335077a03f Image: More cleanup and reduced code duplication. 2024-12-12 11:52:59 +01:00
BlueCube3310 189c8eb671 Implement shadowmasks for LightmapGI
Co-authored-by: dearthdev <nathandearthdev@gmail.com>
2024-12-12 11:00:28 +01:00
Thaddeus Crews ab208af781
Merge pull request #100174 from Calinou/gdscript-add-deprecated-experimental-annotations
Tweak unknown annotation GDScript error for `@deprecated`/`@experimental`/`@tutorial`
2024-12-11 17:35:50 -06:00
Bastiaan Olij 0a61ebdcea OpenXR: Add support for binding modifiers 2024-12-12 09:46:19 +11:00
smix8 476479419b Despaghettify NavigationServer path queries
Despaghettify NavigationServer path queries.
2024-12-11 22:29:48 +01:00
Rémi Verschelde 44dfa7e710
Merge pull request #99895 from mihe/jolt-physics
Add Jolt Physics as an alternative 3D physics engine
2024-12-11 14:53:57 +01:00
Mikael Hermansson d470c2ac6a Add Jolt Physics as an alternative 3D physics engine
Co-authored-by: Jorrit Rouwe <jrouwe@gmail.com>
2024-12-11 13:57:25 +01:00
devloglogan 3deb5884d7 Renderer agnostic motion vector rendering/OpenXR changes 2024-12-10 15:59:17 -06:00
Thaddeus Crews ae38cdbb6d
Merge pull request #95839 from GustJc/interactive_audio_current_playback
Expose `AudioStreamPlaybackInteractive::get_current_clip_index()`.
2024-12-10 14:16:04 -06:00
Thaddeus Crews f962fdce0e
Merge pull request #100185 from Repiteo/scons/fix-thirdparty-warnings
SCons: Fix MSVC bypassing disabled warnings
2024-12-10 14:16:02 -06:00
Thaddeus Crews b789935a13
Merge pull request #100049 from Chaosus/flat_button_sname
[Scene] Add `SceneStringName::FlatButton`
2024-12-10 14:16:01 -06:00
Thaddeus Crews 1f0eeea7b5
Merge pull request #99902 from Repiteo/dotnet/ci-warnings
C#: Fix warnings caught by new problem-matchers
2024-12-10 14:15:57 -06:00
Thaddeus Crews 8f16f864a6
Merge pull request #99765 from dalexeev/core-fix-json-from-to-native
Core: Fix `JSON.{from,to}_native()` issues
2024-12-10 14:15:53 -06:00
Thaddeus Crews 79dd5179e3
Merge pull request #99887 from JackErb/gdscript-parser-error-fix
Improve misleading `Unexpected "x" in class body.` GDScript parser error
2024-12-10 14:15:50 -06:00
Thaddeus Crews 57d08dbec3
C#: Fix warnings caught by new problem-matchers
• Restore MSVC problem matcher for Linux builds
2024-12-10 14:04:35 -06:00
Thaddeus Crews d8761f2c79
SCons: Improve colored output 2024-12-10 11:44:48 -06:00
Gustavo Jaruga Cruz 12f682bdc2 Exposes interactive audio playback current playing clip. 2024-12-10 07:34:02 -03:00
Chaosus ba39b078f5 [Scene] Add `SceneStringName::FlatButton` 2024-12-10 11:12:26 +03:00
JackErb 13fcb05e7b Improve GDScript "unexpected token in class body" parser error
This parser error was misleading.

Fixes:
1. Now points at correct line
2. For identifiers, prints out `Identifier "%s"`
2024-12-09 21:01:46 -08:00
Bastiaan Olij 08ced813a9 OpenXR: Add Metal support 2024-12-10 11:41:59 +11:00
Hugo Locurcio 6095a37d64
Tweak unknown annotation GDScript error for `@deprecated`/`@experimental`/`@tutorial`
These annotations don't exist at a source level, so the error messages
point to the documentation comment syntax.
2024-12-09 22:18:35 +01:00
Thaddeus Crews a372214a4a
Merge pull request #76020 from dalexeev/gds-warning-ignore-regions
GDScript: Add `@warning_ignore_start` and `@warning_ignore_restore` annotations
2024-12-09 14:33:38 -06:00
Thaddeus Crews b4bd38444b
Merge pull request #98545 from juanjp600/dotnet-generic-collections-set-typed
Fix generic arrays and dictionaries in .NET not calling `set_typed`
2024-12-09 14:33:37 -06:00
Thaddeus Crews a607bca2fd
Merge pull request #100024 from Ivorforce/optimize-string-single-char
Optimize string single char contains calls.
2024-12-09 14:33:24 -06:00
Thaddeus Crews 101b78fbea
Merge pull request #100020 from Lielay9/mend-round-primitives
Mend gaps in meshes caused by trigonometric funcs.
2024-12-09 14:33:23 -06:00
Thaddeus Crews 6931930029
Merge pull request #99860 from akien-mga/basisu-clarify-encoder-only-deps
basis_universal: Clarify encoder-only dependencies, only used in editor builds
2024-12-09 14:33:12 -06:00
Thaddeus Crews 94caf59b71
Merge pull request #100105 from smix8/dirty_mold
Fix avoidance dirty flag regression
2024-12-09 14:33:09 -06:00
Thaddeus Crews 533091ae22
Merge pull request #99974 from Flarkk/improve_occlusion_jitter
Optimize Occlusion culling jitter
2024-12-09 14:33:08 -06:00
Thaddeus Crews 070aeb5688
SCons: Fix MSVC bypassing disabled warnings 2024-12-09 11:49:42 -06:00
Juan Pablo Arce 8ab27a7ccf Fix generic arrays and dictionaries not calling set_typed 2024-12-08 01:01:19 -03:00
Lukas Tenbrink b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +01:00
smix8 4de615d1ae Fix avoidance dirty flag regression
The dirty flag can also still be set by some legacy functions triggered by the agents and obstacles.
2024-12-06 16:20:59 +01:00
Hei b4c6f9b3d9 Mend gaps in meshes caused by trigonometric funcs. 2024-12-06 17:10:12 +02:00
Danil Alexeev 7d65d0a908
GDScript: Add `@warning_ignore_start` and `@warning_ignore_restore` annotations 2024-12-06 15:37:02 +03:00
Thaddeus Crews eb5103093c
Merge pull request #99327 from colinator27/sync-bar-beats
Implement `AudioStreamSynchronized::get_bar_beats()`, fix division by zero
2024-12-05 14:12:26 -06:00
Thaddeus Crews 4b91e98656
Merge pull request #99959 from fire/vsk-csg-error-and-ctd
Print better manifold errors and avoid crash on non manifold csg input.
2024-12-05 14:12:25 -06:00
Thaddeus Crews 7bff6c827f
Merge pull request #99186 from PhairZ/wheels-of-the-bus-go-round-and-round
Fix `fade_beats` defined as `int` in `audio_stream_interactive.h`
2024-12-05 14:12:24 -06:00
Thaddeus Crews 4d0ce3ce76
Merge pull request #100060 from Rudolph-B/Issue-100032
Fixed occlusion culling buffer getting overwritten in larger scenes
2024-12-05 14:12:17 -06:00
Thaddeus Crews 49e033f8e2
Merge pull request #100047 from MBCX/fix-freebsd-compilation
Make Godot compile on `FreeBSD`
2024-12-05 14:12:11 -06:00
Thaddeus Crews ec7ffdcb15
Merge pull request #100008 from Chubercik/thorvg-0.15.5
thorvg: Update to 0.15.5
2024-12-05 14:11:50 -06:00
Rémi Verschelde fbde06e4c8
basis_universal: Clarify encoder-only dependencies, only used in editor builds 2024-12-05 21:01:58 +01:00
Rudolph Bester 329d25b1fa Fixed occlusion culling buffer getting overwritten in larger scenes 2024-12-05 18:54:13 +02:00
MBCX 6bc80effbb Make Godot compile on FreeBSD 2024-12-05 12:33:55 -04:00
Daylily-Zeleen 614a51f293 Optimize callable's stringify text. 2024-12-05 14:24:39 +08:00
Thaddeus Crews ab58a339df
Merge pull request #99712 from KoBeWi/bug_spawner_spawns_new_bugs_to_fix
Fix UID support in MultiplayerSpawner
2024-12-04 11:02:02 -06:00
Florent Guiocheau c7895ca226 Optimize Occlusion jitter 2024-12-04 17:39:51 +01:00
Jakub Marcowski 5318008ce6
thorvg: Update to 0.15.5 2024-12-04 17:24:43 +01:00
K. S. Ernest (iFire) Lee 6cf1d3c13e Print better manifold errors and avoid crash on non manifold csg input.
* Manifold does not have a snap property.
* Tolerance means simplification amount.
* CSG snap has been removed
* Add better error messages.
* Verbose print manifold meshgl64 properties as json.
* Update manifold for error fixes
2024-12-03 20:19:47 -08:00
kobewi 67b95f341e Fix UID support in MultiplayerSpawner 2024-12-03 22:11:43 +01:00
Thaddeus Crews 47bc374edf
Merge pull request #99325 from Calinou/doc-zipreader-extract-all
Add a code sample that extracts all files to ZIPReader documentation
2024-12-03 14:41:08 -06:00
Thaddeus Crews 1719f8ed3d
Merge pull request #99834 from kiroxas/passLengthToParseUTF8
Ensure `parse_utf8` has length of string passed in when available
2024-12-03 14:41:06 -06:00
Thaddeus Crews 87515ae1b1
Merge pull request #99941 from Flarkk/fix_occlusion_jitter
Fix Occlusion culling jitter
2024-12-03 14:41:01 -06:00
Thaddeus Crews 26e7b6bdd6
Merge pull request #99164 from bruvzg/int_files
[Export] Write text server data from memory, instead of using temporary file.
2024-12-03 14:40:58 -06:00
Thaddeus Crews 8a134c580c
Merge pull request #97469 from Calinou/cameraserver-linux-remove-prints
Remove verbose prints from CameraServer on Linux due to being printed every second
2024-12-03 14:40:53 -06:00
Thaddeus Crews cb1b743e59
Merge pull request #99861 from Ryan-000/Fix-language-server-thread-crash
Fix language server causing random crashes when `use_threads` is enabled
2024-12-03 14:40:47 -06:00
Pedro J. Estébanez f8f5505b26 Avoid deadlocks in multi-threaded management of the C# script map 2024-12-03 07:38:14 +01:00
Hugo Locurcio 4db9c112ff
Add a code sample that extracts all files to ZIPReader documentation
Tested with various ZIP files found on the web, with a single root
folder or multiple files at its root.

Co-authored-by: Raul Santos <raulsntos@gmail.com>
2024-12-03 00:37:50 +01:00
Florent Guiocheau 6960b33cbb Fix occlusion culling jitter 2024-12-02 20:46:13 +01:00
Pāvels Nadtočajevs c5ca56f40b [Export] Write text server data from memory, instead of using temporary file. 2024-12-02 18:22:55 +02:00
Rémi Verschelde 9f36f3b573
Merge pull request #99753 from Faless/ws/clarify_connect_noblock
[WebSocket] Clarify that `connect_to_url` is non-blocking
2024-12-02 17:20:43 +01:00
Rémi Verschelde fa264115ce
Merge pull request #98664 from bruvzg/ts_reset_subpixel_shift
[TextServer] Reset subpixel shift on blank glyphs.
2024-12-02 17:20:07 +01:00
Ryan 8dd330dee7 Fix language server thread crash
Co-Authored-By: Adam Scott <ascott.ca@gmail.com>
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-02 10:31:15 -05:00
Micky 109fcbb43a Remove uses of static typing from the documentation 2024-12-02 15:56:46 +01:00
Rémi Verschelde d741a646a5
Merge pull request #99924 from Mickeon/documentation-no-implicit_static-typing-yet
Remove uses of implicit static typing from the documentation
2024-12-02 15:52:25 +01:00
Rémi Verschelde c59f4be6fd
Merge pull request #99901 from adamscott/local_shape-fix
Fix `GodotSpace3D::test_body_motion()` not setting `local_shape`
2024-12-02 15:52:08 +01:00
Rémi Verschelde ab54ba92a4
Merge pull request #99752 from Faless/mp/fix_offlfine_mp_docs
[MP] Move OfflineMultiplayerPeer docs to the module
2024-12-02 15:51:34 +01:00
Rémi Verschelde e6125ef51b
Merge pull request #98763 from AThousandShips/more_sname_uses
Use `SceneStringName` in more places
2024-12-02 15:50:44 +01:00
Rémi Verschelde 702f567138
Merge pull request #98533 from dalexeev/adjust-make-rst-for-gds
Adjust `make_rst.py` for GDScript documentation
2024-12-02 15:50:26 +01:00
Rémi Verschelde 7f3a8d0b1b
Merge pull request #97928 from kiroxas/navImprovement
Improve `NavMeshQueries3D::polygons_get_closest_point_info` performance
2024-12-02 15:50:11 +01:00
Rémi Verschelde d2c82a8ffc
Merge pull request #97378 from rune-scape/less-const-cast
Get rid of easily removable uses of `const_cast`
2024-12-02 15:50:06 +01:00
Micky 7539a3a7cf Remove uses of implicit static typing from the documentation 2024-12-02 15:40:42 +01:00
A Thousand Ships af56d6e8e8
Use `SceneStringName` in more places 2024-12-02 14:39:16 +01:00
rune-scape d58b2e879f Get rid of easily removable uses of const_cast 2024-12-01 17:50:13 -08:00
Adam Scott 7c6f523747
Fix `GodotSpace3D::test_body_motion()` not setting `local_shape` 2024-12-01 13:03:23 -05:00
Kiro 83d4bde0a2 When calling code has length of string, pass it to parse_utf8 2024-12-01 08:31:22 +01:00
Danil Alexeev 0339032969
RegEx: Fix handling of unset/unknown capture groups 2024-11-30 13:35:49 +03:00
Danil Alexeev ba943e4481
Adjust `make_rst.py` for GDScript documentation 2024-11-30 11:48:14 +03:00
Rémi Verschelde a51c60f5e3
Revert "basis_universal: Make tinyexr dependency explicit"
This reverts commit 220f2611cc.
2024-11-30 01:25:53 +01:00
Rémi Verschelde 682c5c7d49
GDScript: Fix failing tests due to collision with #99490 formatting change 2024-11-29 23:10:02 +01:00
Rémi Verschelde bce340b31a
Merge pull request #99825 from gio3k/fix/basisu_tinyexr_dep
basis_universal: Make tinyexr dependency explicit
2024-11-29 22:51:27 +01:00
Rémi Verschelde 689c789ab3
Merge pull request #99393 from badsectoracula/update-gridmap-editor-cursel-transform
Update gridmap editor nodes when the gridmap node transform changes
2024-11-29 22:50:51 +01:00
Rémi Verschelde 6edeea98e0
Merge pull request #98770 from Rudolph-B/Issue-94638
Fix occlusion culling for double builds by enforcing float conversion for Embree.
2024-11-29 22:46:50 +01:00
Rémi Verschelde 2669f19605
Merge pull request #96782 from aaronfranke/blend-fix-rough-metallic-if-not-unpack
Blend file import: Don't keep original files when not unpacking them
2024-11-29 22:45:56 +01:00
Rémi Verschelde 6e72b159ca
Merge pull request #93301 from rune-scape/compiler-messages
GDScript: Add error messages to some compilation errors
2024-11-29 22:45:43 +01:00
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