1
0
Fork 0
Commit Graph

11834 Commits

Author SHA1 Message Date
Thaddeus Crews acddf31c39
Merge pull request #101489 from RandomShaper/optimize_classnames_enumeration
Optimize classnames enumeration
2025-02-04 09:03:59 -06:00
bruvzg f2709c7ded [TextServer] Fix line/word breaks not always updated when applying overrun. 2025-02-04 11:37:05 +02:00
devloglogan e7a3a27d1c Fix OpenXRAPIExtension casting errors 2025-02-03 15:34:10 -06:00
Thaddeus Crews 382c760ea6
SCons: Apply new ruff/mypy fixes 2025-02-03 09:55:09 -06:00
Bernat Arlandis f2475326a4 Fix playing of video Theora files 2025-02-03 13:22:35 +01:00
clayjohn 49a004fc13 Spread direct lighting calculation for LightmapGI over several submissions to avoid TDR on Windows devices
Also add percentage progress for direct lighting step
2025-01-31 16:37:13 -08:00
Rémi Verschelde ceea97fc05 Betsy: Consolidate documentation in module folder and cleanup SCsub
Also remove unused `UavCrossPlatform_piece_all.glsl`.
2025-01-31 23:45:37 +01:00
Thaddeus Crews 4a7ce6070d
Merge pull request #102128 from Faless/fix/ws_buffering_again
[WS] Fix wslay multi-frame message parsing (again)
2025-01-31 09:15:50 -06:00
Pedro J. Estébanez 318af42020 Include more attributes in the global class names cache 2025-01-29 09:39:50 +01:00
Fabio Alessandrelli a2f5eb9cf0 [WS] Fix wslay multi-frame message parsing (again)
We incorrectly assumed that the `payload_length` in the recv start
callback of wslay was the final message size, but according to the
WebSocket  protocol, the payload length always refers to the current
frame's payload size.

The protocol, in fact, do not include a "message payload" length on
purpose to allow sending messages of unknown size without forcing the
sender to buffer the whole message (RFC6455 Section 5.4).

This means a receiving peer has no way to know beforehand how long a
message will be, and needs instead to keep track of the length of each
frame until the FIN one is received to properly reconstruct the message
at the end.
2025-01-28 16:26:11 +01:00
Thaddeus Crews b7deb853c9
Merge pull request #102029 from mihe/jolt/area-mass-properties
Override mass properties for `Area3D` when using Jolt Physics
2025-01-28 09:03:40 -06:00
Thaddeus Crews 2776715ace
Merge pull request #101970 from raulsntos/dotnet/signal-obsolete-everything
[.NET] Add Obsolete attribute to signal trampolines and emitter functions
2025-01-27 09:46:26 -06:00
Thaddeus Crews 7bf6caaa29
Merge pull request #101791 from bruvzg/ts_emb_keys
[TextServer] Fix embedded object keys in substrings.
2025-01-27 09:46:13 -06:00
Thaddeus Crews e5498020b6
Merge pull request #101815 from mihe/jolt/no-post-step
Refactor post-step operations in Jolt module to be done as needed
2025-01-26 11:49:21 -06:00
Mikael Hermansson f380b00351 Override mass properties for `Area3D` when using Jolt Physics 2025-01-25 18:15:50 +01:00
Mikael Hermansson a30410bbf5 Refactor post-step operations in Jolt module to be done as needed 2025-01-25 12:22:30 +01:00
Thaddeus Crews 0d7af5b0cb
Merge pull request #101968 from kiroxas/FixSlightlyWrongPath
Fix wrong distance calculation in `NavMeshQueries3D::_query_task_build_path_corridor`
2025-01-24 09:05:38 -06:00
Raul Santos 5a53ec55ec
[.NET] Add Obsolete attribute to signal trampolines and emitter functions
If a signal is deprecated, make sure we also add the `[Obsolete]` attribute to that signal's trampoline and emitter functions.
2025-01-24 02:18:28 +01:00
Kiro 7e9cbfbcb8 Remove erroneous squared version 2025-01-23 20:11:25 +01:00
Thaddeus Crews d9d705d8ab
Merge pull request #94479 from juanjp600/opt-in-path-rotation-tangent-fix
Add flag to enable use of accurate path tangents for polygon rotation in `CSGPolygon3D`
2025-01-20 16:25:49 -06:00
Thaddeus Crews 7a63dc94ae
Merge pull request #101760 from Faless/ws/fix_endless_closing
[WS] Fix peer stuck in CLOSING state
2025-01-20 10:05:36 -06:00
Mikael Hermansson f4288fb349 Fix kinematic bodies not synchronizing state when using Jolt Physics 2025-01-19 16:18:14 +01:00
Pāvels Nadtočajevs 7f4481284e [TextServer] Fix embedded object keys in substrings. 2025-01-19 10:22:46 +02:00
Fabio Alessandrelli 81181c5941 [WS] Fix peer stuck in CLOSING state
This was due by the buffer being cleared on close (including in closing
state) preventing further reads.

This commit changes the close logic to only clear the buffer when the
peer connection has been fully closed (acknowledged by the other end, or
closed due to a "broken" connection).
2025-01-18 16:01:40 +01:00
Thaddeus Crews 9630d4e2fc
Merge pull request #101632 from bruvzg/gds_tween_property_crash
Fix GDScript editor crash on invalid `tween_property` arguments.
2025-01-17 10:16:55 -06:00
Pāvels Nadtočajevs 14093fdacf [TextServer] Fix ICU data incorrectly marked as loaded even if file was not found. 2025-01-17 15:46:04 +02:00
Juan Pablo Arce dd7bbcc837 Add flag to enable use of accurate path tangents for polygon rotation in `CSGPolygon3D`
The new property is called `path_rotation_accurate`.
2025-01-17 08:18:21 -03:00
Thaddeus Crews 86002e1a3c
Merge pull request #100882 from smix8/node_navmesh_geo_parsers
Make nodes handle their respective navigation source geometry
2025-01-16 17:18:01 -06:00
Thaddeus Crews fd88acc671
Merge pull request #101008 from Repiteo/scons/nocache-all-text
SCons: Properly `NoCache` all text files
2025-01-16 17:17:59 -06:00
Thaddeus Crews 73278bf35d
SCons: Properly `NoCache` all text files 2025-01-16 16:59:12 -06:00
Pāvels Nadtočajevs 576892863c Fix GDScript editor crash on invalid `tween_property` arguments. 2025-01-16 10:40:13 +02:00
Pāvels Nadtočajevs 43bc44e3b0 [TextServer] Fix text buffer not processing strings added after `shape`. 2025-01-16 08:57:27 +02:00
Adam Scott 33e16435f5
Replace some problematic uses of `String::num` to `String::num_int64` 2025-01-15 12:51:51 -05:00
Rémi Verschelde 67f54bd993 Merge pull request #101531 from akien-mga/scene-import-remove-unused-_get_import_flags
Remove unused `EditorSceneFormatImporter::_get_import_flags`
2025-01-14 18:29:40 +01:00
Rémi Verschelde e67e8b8680 Merge pull request #100524 from BlueCube3310/ktx-etc
KTX: Add support for loading most ETC-compressed formats
2025-01-14 18:29:34 +01:00
Rémi Verschelde 21fcb56547 Remove unused `EditorSceneFormatImporter::_get_import_flags`
This has never been used since Godot was open sourced.

Import flags are used but directly through `_import_scene`.
2025-01-14 16:57:06 +01:00
Rémi Verschelde a69ccee151 Merge pull request #101505 from smix8/region_bounds
Add functions to get axis-aligned bounds of navigation regions
2025-01-14 15:06:06 +01:00
Rémi Verschelde 488ee4f010 Merge pull request #100950 from HolonProduction/this-time-we-are-spec-compliant-i-think
JSONRPC: Convert ids to int if they are int by value
2025-01-14 15:05:51 +01:00
BlueCube3310 5608f6565f KTX: Add support for loading most ETC-compressed formats 2025-01-14 13:17:45 +01:00
Rémi Verschelde 336459168f Merge pull request #101455 from Calinou/editor-gridmap-update-preview-size
Make GridMap editor Preview Size setting take effect immediately after change
2025-01-14 12:09:05 +01:00
Rémi Verschelde e8c5d99fea Merge pull request #101271 from aaronfranke/gltf-directional-light-no-range
GLTF: Don't write unused light properties
2025-01-14 12:09:01 +01:00
Rémi Verschelde 48715ff98b Merge pull request #101459 from brevven/patch-2
Docs: Fix typo in `AudioStreamSynchronized`
2025-01-14 00:22:14 +01:00
Rémi Verschelde 73f4ef51ff Merge pull request #101294 from devloglogan/openxr-api-update
Update `OpenXRAPI` memory management
2025-01-14 00:22:06 +01:00
Rémi Verschelde bee5de61de Merge pull request #100365 from BlueCube3310/etc-decompress
Add support for decompressing ETC2
2025-01-14 00:21:55 +01:00
Aaron Franke 01a26c5c8b
GLTF: Don't write unused light properties 2025-01-13 14:33:42 -08:00
devloglogan c242cef627 Use vectors for OpenXRAPI memory management 2025-01-13 16:10:43 -06:00
Rémi Verschelde d19147e09a Merge pull request #101503 from devloglogan/openxr-api-action-handle
Expose OpenXR action handles to GDExtension
2025-01-13 20:22:57 +01:00
Rémi Verschelde a2971985e5 Merge pull request #101189 from mihe/jolt/defer-static-compound
Improve performance of changing compound shapes when using Jolt Physics
2025-01-13 20:22:04 +01:00
smix8 a7520fca6a Add functions to get axis-aligned bounds of navigation regions
Adds functions to get the navigation mesh Rect2 of a NavigationRegion2D or AABB of a NavigationRegion3D.
2025-01-13 20:18:33 +01:00
devloglogan c5e40e11e9 Expose OpenXRAPI methods to get XrAction handles 2025-01-13 13:07:50 -06:00
BlueCube3310 c4fd9f9733 Add etcpak decompression functions 2025-01-12 18:48:03 +01:00
Rémi Verschelde 957097738f Merge pull request #101235 from Repiteo/style/editorconfig
Style: Unify `.editorconfig` logic
2025-01-12 18:07:16 +01:00
Rémi Verschelde 632c77e10b Merge pull request #84264 from HolonProduction/autocompletion-78003
Try to guess method return type even if subscript base has no value
2025-01-12 18:06:52 +01:00
Thaddeus Crews 9d0c41a489
Style: Unify `.editorconfig` logic 2025-01-12 08:49:01 -06:00
smix8 0ed2cb0439 Make nodes handle their respective navigation source geometry
Makes nodes handle their respective navigation source geometry.
2025-01-12 13:14:46 +01:00
brevven cf414f777f
Fix typo in AudioStreamSynchronized.xml
Fix a typo ("being" -> "begin")

Context:

>The streams begin at exactly the same time when play is pressed
2025-01-12 02:44:01 -08:00
Hugo Locurcio 80b8d6dbe6
Make GridMap editor Preview Size setting take effect immediately after change
Previously, you had to interact with the zoom widget after changing
the editor setting for the preview size to update.

This also adds property hints for the GridMap editor settings.
2025-01-12 02:01:30 +01:00
HolonProduction 24912d2010 Autocompletion: Try to guess method return type even if subscript base has no value 2025-01-11 23:50:43 +01:00
Rémi Verschelde 768c60c6ca Merge pull request #101442 from KoBeWi/path_goes_here
Ensure path for shallow scripts
2025-01-11 22:30:22 +01:00
Rémi Verschelde fdd3c8ab81 Merge pull request #101337 from beicause/csharp-okhsl-properties
C#: Add OKHSL properties to Color
2025-01-11 22:29:53 +01:00
kobewi c29e9e9b29 Ensure path for shallow scripts 2025-01-11 21:20:31 +01:00
Rémi Verschelde 4caae29729 Merge pull request #101368 from Hilderin/fix-selection-game-view
Fix selection in 3D Game view
2025-01-10 23:06:28 +01:00
Rémi Verschelde 85fbf7ca84 Merge pull request #101367 from akien-mga/msdfgen-1.12
msdfgen: Update to 1.12
2025-01-10 23:06:25 +01:00
Rémi Verschelde 85358f1738 Merge pull request #101366 from akien-mga/harfbuzz-10.1.0
harfbuzz: Update to 10.1.0
2025-01-10 23:06:22 +01:00
Rémi Verschelde 139619ca0c Merge pull request #101355 from akien-mga/style-clang-format-InsertBraces
Style: Enable clang-format's `InsertBraces` config
2025-01-10 23:06:15 +01:00
Rémi Verschelde 74682f9383 Merge pull request #101231 from mihe/jolt/init-debug-count
Fix debug contact count not being initialized when using Jolt Physics
2025-01-10 23:06:07 +01:00
Rémi Verschelde 3014eec40d Merge pull request #99407 from devloglogan/rec-resolution
Allow using custom `Rect2i` for rendering with OpenXR
2025-01-10 23:05:46 +01:00
Hilderin 055b418e4d Fix Selection Game View 2025-01-10 09:53:17 -05:00
Rémi Verschelde c97c7b73e6 msdfgen: Update to 1.12 2025-01-09 22:03:43 +01:00
Rémi Verschelde 269b1dfa03 harfbuzz: Update to 10.1.0 2025-01-09 21:04:11 +01:00
Rémi Verschelde a024393f71 Merge pull request #101362 from BlueCube3310/etcpak-v200
etcpak: Sync with upstream 2.0
2025-01-09 20:51:44 +01:00
Rémi Verschelde 765c6ab5f8 Merge pull request #101282 from Nazarwadim/use_LocalVector_for_Curve_and_Gradient
Use `LocalVector` for `Curve` and `Gradient`
2025-01-09 20:51:30 +01:00
Rémi Verschelde 496a990fc0 Merge pull request #92526 from dalexeev/gds-remove-renamed-hint-from-warning-enum
GDScript: Remove `RENAMED_IN_GODOT_4_HINT` from `GDScriptWarning::Code` enum
2025-01-09 20:51:21 +01:00
BlueCube3310 84c53607ab Etcpak: Sync with upstream 2025-01-09 19:29:58 +01:00
Danil Alexeev cd918ff470
GDScript: Remove `RENAMED_IN_GODOT_4_HINT` from `GDScriptWarning::Code` enum 2025-01-09 21:07:41 +03:00
Rémi Verschelde 03c83cea1e Style: Enable clang-format's `InsertBraces` config
This was part of our style guide since we started using clang-format
but the feature was only added in clang-format 15, and we hadn't
noticed it yet.
2025-01-09 16:46:51 +01:00
devloglogan e7f6b7ea0b Allow using custom Rect2i for rendering with OpenXR 2025-01-09 09:46:15 -06:00
Rémi Verschelde 4396f8fbd3 Add AudioStreamMP3 `load_from_file`/`load_from_buffer` and harmonize other audio streams
Move OggVorbis and MP3 loading code to their AudioStream class, matching how it's done for WAV.

The duplicate functions in ResourceImporterOggVorbis are now deprecated.

Co-authored-by: MaxIsJoe <34368774+MaxIsJoe@users.noreply.github.com>
2025-01-09 15:46:04 +01:00
Rémi Verschelde cb483e53ca Merge pull request #101327 from Repiteo/scons/specify-module-optional-dependencies
SCons: Specify optional dependencies for modules
2025-01-09 13:51:14 +01:00
Rémi Verschelde 3ac4da1620 Merge pull request #101233 from Ivorforce/utf8-multicall
Optimize calls of `utf8` in a few spots to avoid calling it more than once.
2025-01-09 13:50:55 +01:00
Nazarii 8bfb5d74b3 Use LocalVector for Curve and Gradient 2025-01-09 14:25:21 +02:00
LuoZhihao a71a8c6e1e C#: Expose OKHSL properties of Color 2025-01-09 19:18:56 +08:00
Rémi Verschelde a682b076d7 Merge pull request #101223 from kiroxas/fixWrongIfConditionIn#100549
Fix wrong condition in `NavMeshQueries3D::_query_task_build_path_corridor`
2025-01-09 11:17:28 +01:00
Thaddeus Crews f1f33169d9
SCons: Specify optional dependencies for modules 2025-01-08 21:59:18 -06:00
Rémi Verschelde 7fe0609118 Linux: Relax interdependency between freetype, libpng, and zlib for unvendored builds
This restriction was added to fix #7373 back then, which was a symbol conflict
between FreeType's bundled copy of gzip/zlib, and distro packages.

But we also unbundled FreeType's zlib in #69395 so this is no longer an issue.

On the other hand recent issues pointed out that using system-provided icu4c
or harfbuzz can cause issues (#91401, #100301). We still allow it for now but
raise a warning.
2025-01-09 00:28:46 +01:00
Rémi Verschelde 76c8e76560 Merge pull request #101284 from akx/tyops
A handful of typo fixes
2025-01-08 15:53:33 +01:00
Aarni Koskela f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Thaddeus Crews a29294fddc
SCons: Refactor color output implementation 2025-01-07 18:44:53 -06:00
Rémi Verschelde 0c763602f9 Merge pull request #101237 from mihe/jolt/cache-bounce-velocity
Cache value of Jolt Physics project setting `bounce_velocity_threshold`
2025-01-07 23:18:13 +01:00
Rémi Verschelde 709f2e1a5d Merge pull request #100765 from Geometror/lightmapgi-add-downsampling
Add a supersampling option to LightmapGI
2025-01-07 23:17:39 +01:00
Rémi Verschelde 0fee2724f0 Merge pull request #100751 from YYF233333/force_regex_with_editor
Force build editor with regex module, remove checking code
2025-01-07 23:17:35 +01:00
Hendrik Brucker 054340bb6b Add a supersampling option to LightmapGI
This provides increased lightmap quality with less noise, smoother
shadows and better small-scale shadow detail. The downside is that
this significantly increases bake times and memory usage while baking
lightmaps, so this option is disabled by default.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Co-authored-by: landervr <31851431+CpnWaffle@users.noreply.github.com>
2025-01-07 18:44:59 +01:00
Mikael Hermansson d6b822c891 Cache value of Jolt Physics project setting `bounce_velocity_threshold` 2025-01-07 18:35:04 +01:00
Lukas Tenbrink 0fddf6a824 Optimize calls of `utf8` in a few spots to avoid calling it more than once. 2025-01-07 17:24:21 +01:00
Mikael Hermansson 174a2b6593 Fix debug contact count not being initialized when using Jolt Physics 2025-01-07 17:16:59 +01:00
Kiro f70acb0308 shift the polygon heap only if index is in range 2025-01-07 13:40:17 +01:00
Yufeng Ying 34d8255947 Force build editor with regex module, remove checking code.
Fix include.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-07 19:43:23 +08:00
Rémi Verschelde 6e9be55ee2
Merge pull request #100104 from bruvzg/ts_data_in_template
[Export] Allow using ICU data from export templates instead of editor embedded data.
2025-01-07 10:14:34 +01:00
Pāvels Nadtočajevs 3d60ce9389 [Export] Allow using ICU data from export templates instead of editor embedded data. 2025-01-07 08:15:09 +02:00
bruvzg cc1db569e1 [TextServer] Improve embedded objects handling performance. 2025-01-07 08:01:29 +02:00