1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00
Commit Graph

74526 Commits

Author SHA1 Message Date
Thaddeus Crews
8302d81b3f Merge pull request #106155 from akien-mga/basisu-msvc-include-ctype
basis_universal: Add missing `ctype.h` include to fix MSVC build
2025-05-08 07:19:35 -05:00
Thaddeus Crews
75d118fba1 Merge pull request #105034 from YeldhamDev/fix_remote_error
Fix error spam when inspecting remote nodes outside the tree
2025-05-08 07:19:35 -05:00
Thaddeus Crews
9b6e06dcf3 Merge pull request #106152 from m4gr3d/bump_target_sdk
Annual versions bump for the Android platform
2025-05-08 07:19:34 -05:00
Thaddeus Crews
16aaa0a213 Merge pull request #103944 from KoBeWi/more_red_info
Improve error messages for `add_property_info()`
2025-05-08 07:19:33 -05:00
Thaddeus Crews
182be69a1e Merge pull request #106151 from SaNeOr/fix-106123
Fix editor crash when middle mouse button is clicked on empty space in scene tabs
2025-05-08 07:19:32 -05:00
Thaddeus Crews
288822e330 Merge pull request #105570 from kroketio/texture-extension-mipmaps
RenderingDevice: Pass mipmap count to `texture_create_from_extension()`
2025-05-08 07:19:16 -05:00
Elise
057759d413 Fix for debugging typed dictionaries 2025-05-08 21:11:23 +10:00
Fabio Alessandrelli
2c789788c0 mbedTLS: Fix concurrency issues with TLS
When we first integrated mbedTLS, we decided not to enable
MBEDTLS_THREADING_C (which adds mutex locking to calls modifying the
state), and instead to simply create separate contexts ("states") for
each connection.

This worked fine until recently.
Sadly, mbedTLS 3 added a global state for the new PSA crypto
functionalities (which are required to support TLSv1.3).
This results in TLSv1.3 connections to access and modify the global
state concurrently when running in threads.

This commit enables MBEDTLS_THREADING_C, and MBEDTLS_THREADING_C_ALT to
provide a generic Godot implementation using the engine Mutex class.
2025-05-08 11:45:00 +02:00
Fredrik Lindahl
01056f369a [.NET] Avoid heap allocation when using StringNames as key in a Collection.Dictionary.
Changed StringName GetHashCode to call godot_string_name.GetHashCode instead of godot_string_name's (which was not overridden) as this otherwise leads to heap allocations when e.g. calling the indexer in a Dictionary with `StringName` type as Key.
2025-05-08 08:41:22 +02:00
Haoyu Qiu
c24bfb0491 Add missing description of FileAccess.store_half behavior on error 2025-05-08 12:53:52 +08:00
SaNeOr
0785c9ad81 fix Editor Crashes When Middle Mouse Button Is Clicked on Empty Space in scene_tabs 2025-05-08 12:04:53 +08:00
Rémi Verschelde
9419ef2f34 basis_universal: Add missing ctype.h include to fix MSVC build
Seems like latest MSVC tweaked some headers and we no longer have definitions
for `isdigit` and `isalpha` without an explicit include.
2025-05-07 23:21:53 +02:00
Thaddeus Crews
0793c626d2 Merge pull request #106111 from Calinou/animationmixer-libraries-use-typed-dictionary
Use a type-hinted dictionary for AnimationLibrary's `libraries` property
2025-05-07 12:48:33 -05:00
Thaddeus Crews
e9ddf57791 Merge pull request #105593 from smix8/navregion_3d_gizmo_plugin
Move `NavigationRegion3DGizmoPlugin` to `navigation_3d` module.
2025-05-07 12:48:32 -05:00
Thaddeus Crews
090d244b16 Merge pull request #101356 from Ivorforce/inline-utf-creation-functions
Inline `String::utf8` and `String::utf16` for their simplicity.
2025-05-07 12:48:32 -05:00
Thaddeus Crews
5c0d33afd7 Merge pull request #96233 from aaronp64/textserver_inline
Remove `_FORCE_INLINE_` from `TextServer*::_ensure*` methods
2025-05-07 12:48:31 -05:00
Thaddeus Crews
075b55068e Merge pull request #100067 from aaronp64/randi_range_overflow
Fix `RandomPCG::random(int, int)` overflow bug
2025-05-07 12:48:30 -05:00
Thaddeus Crews
051712dfb8 Merge pull request #103264 from mhilbrunner/docs-path-join
Rename "file" param for str.path_join() to "path"
2025-05-07 12:48:29 -05:00
Thaddeus Crews
c714743bb1 Merge pull request #105944 from syntaxerror247/main-menu
Add editor setting to collapse main menu into a `MenuButton`
2025-05-07 12:48:29 -05:00
Thaddeus Crews
0ce3d75c20 Merge pull request #93783 from aaronp64/json_stringify_performance
Improve `JSON::stringify` performance
2025-05-07 12:48:28 -05:00
Thaddeus Crews
5a71e5aeb1 Merge pull request #105806 from Grublady/scene_dock_open_doc
Walk up inheritance hierarchy when finding which script's docs to open
2025-05-07 12:48:27 -05:00
Thaddeus Crews
aa1ca2b244 Merge pull request #93517 from Repiteo/core/nodiscard-strings
Core: Add `[[nodiscard]]` to string-like classes/structs
2025-05-07 12:48:27 -05:00
Thaddeus Crews
388a649e24 Merge pull request #106149 from BlueCube3310/gles-ambient-capture
Compatibility: Disable environment ambient light when affected by light probes
2025-05-07 12:48:26 -05:00
Thaddeus Crews
872ca1b3c9 Merge pull request #106139 from akien-mga/crash-handler-backtrace-print
Improve script backtrace print in crash handlers
2025-05-07 12:48:25 -05:00
Thaddeus Crews
6d3f91896d Merge pull request #104729 from Meorge/bugfix/warning-grammar-fixes
Fix a few GDScript warning messages for grammar and consistency
2025-05-07 12:48:25 -05:00
Thaddeus Crews
3b12bd0d79 Merge pull request #106137 from RedMser/remove-unused-linespacing-setting
Remove redundant `line_spacing` editor setting
2025-05-07 12:48:24 -05:00
Thaddeus Crews
658ee70f1c Merge pull request #96664 from aaronp64/array_cow_perf
`Array` performance improvements to reduce copying/copy_on_write calls
2025-05-07 12:48:23 -05:00
Thaddeus Crews
02206f45b7 Merge pull request #106134 from stuartcarnie/macos_embedded_followup
macOS: Additional improvements and fixes for embedded window support
2025-05-07 12:48:23 -05:00
Thaddeus Crews
98e39c6440 Merge pull request #105105 from smix8/springclean
Clean and group NavigationServer headers
2025-05-07 12:48:22 -05:00
Thaddeus Crews
affbfa5b4e Merge pull request #89746 from KoBeWi/NOTification
Remove `NOTIFICATION_ENTER_TREE` when `NOTIFICATION_THEME_CHANGED` is used
2025-05-07 12:48:21 -05:00
Thaddeus Crews
eb39839a42 Merge pull request #106129 from kitbdev/fix-solo-tests
Fix tests that fail when alone
2025-05-07 12:48:21 -05:00
Thaddeus Crews
fc8f2a17d6 Merge pull request #106126 from mieko/fix-depreacted
register_editor_types: Fix `DISABLE_DEPREACTED` typo
2025-05-07 12:48:20 -05:00
Thaddeus Crews
42b50abf15 Merge pull request #106113 from lodetrick/add-dictionary-type-hints
Add missing dictionary and array type hints
2025-05-07 12:48:04 -05:00
Fredia Huya-Kouadio
4b4144cc39 Annual versions bump for the Android platform
- gradle: 8.2 -> 8.11.1
- androidx.constraintlayout:constraintlayout: 2.1.4 -> 2.2.1
- Android gradle plugin: 8.2.0 -> 8.6.1
- Android compile sdk: 34 -> 35
- Android target sdk: 34 -> 35
- Android build tools: 34.0.0 -> 35.0.0
- kotlin: 1.9.20 -> 2.1.20
- androidx.fragment:fragment: 1.7.1 -> 1.8.6
- OpenXR vendors plugin: 3.1.2-stable -> 4.0.0-stable
2025-05-07 13:14:49 -04:00
BlueCube3310
909f9ca9d4 Compatibility: Disable environment ambient light when affected by light probes 2025-05-07 18:08:54 +02:00
RedMser
4acdc7a657 Remove redundant line_spacing editor setting 2025-05-07 16:53:05 +02:00
Sander
6ae50cad17 RenderingDevice: introduce parameter 'mipmaps' for texture_create_from_extension() 2025-05-07 15:15:55 +03:00
2750558108
49c7966042 Fix unexpected control position change when left/top offsets not match pos_cache 2025-05-07 18:46:40 +08:00
Rémi Verschelde
a6398d71a3 Improve script backtrace print in crash handlers
Also fix the editor crash handler message for bug reports not properly
using the `.editor` override.
2025-05-07 09:52:50 +02:00
Mike Owens
88a425fd26 register_editor_types: Fix DISABLE_DEPREACTED typo
Issue #106093 contained a typo, not properly guarding
`SkeletonIK3DEditorPlugin`
2025-05-06 23:35:56 -04:00
Malcolm Anderson
d8db03e31a Fix a few GDScript warning messages for grammar and consistency
Regenerate test results

Improve warning message for `INT_AS_ENUM_WITHOUT_CAST`

Improve `REDUNDANT_AWAIT` message and regenerate tests

Allow warning message for UNASSIGNED_VARIABLE_OP_ASSIGN to display specific operator

Remove "being" from some messages to make them consistent and clearer

Update expected test results

Use Variant::get_operator_name for determining string representation of operator instead of big switch-case

Update tests

Update modules/gdscript/gdscript_warning.cpp

Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>

Update tests... again
2025-05-06 20:28:01 -07:00
Anish Mishra
e03942a6ef Add editor setting to collapse main menu 2025-05-07 08:39:21 +05:30
Anish Mishra
64b4598baa Improve Android editor layout 2025-05-07 08:39:21 +05:30
aaronp64
f13b4b760a Improve JSON::stringify performance
- Changed stringify to call static function _stringify directly, instead of creating JSON object
- Changed colon and end_statement from String to const char * to avoid extra allocations in each _stringify call
- Pass result String reference to each _stringify call to append to instead of allocating new String in each call

These changes make JSON::stringify around 2-3x faster in most cases
2025-05-06 18:27:32 -04:00
aaronp64
1089f61868 Fix RandomPCG::random(int, int) overflow bug
- Use int64_t for subtraction before converting to uint32_t
- Don't add one to uint32_t max value for rand() bounds
2025-05-06 17:54:12 -04:00
aaronp64
91931606f7 Remove _FORCE_INLINE_ from TextServer*::_ensure* methods
Reduces binary size by ~1.5 MB when compiling with TextServerAdvanced, and ~800 KB for TextServerFallback
2025-05-06 17:49:38 -04:00
Stuart Carnie
9290adee38 MacOS: Additional improvements and fixes for embedded window support 2025-05-07 06:11:05 +10:00
Logan Detrick
247520b348 Add missing dictionary and array type hints 2025-05-06 12:35:19 -07:00
smix8
3307be5038 Move NavigationObstacle3DEditorPlugin to navigation_3d module
Moves NavigationObstacle3DEditorPlugin to navigation_3d module.
2025-05-06 20:50:28 +02:00
smix8
63bd35e7cf Move NavigationRegion3DGizmoPlugin to navigation_3d module
Moves NavigationRegion3DGizmoPlugin to navigation_3d module.
2025-05-06 20:49:42 +02:00