Commit graph

63863 commits

Author SHA1 Message Date
George Marques
22236380c0
GDScript: Initialize static variables with defaults in-editor
When the script is not marked as `@tool` the static constructor is not
called and thus the variables contain `null` by default. But since some
validated operations requires a valid value, this would cause a crash.

This commit solves this by initializing the static variables with a
default value based on their types in the editor, when they are not
marked as `@tool`, so if some `@tool` script access them, they will have
a valid typed value, avoiding the crash.
2024-05-02 15:09:22 -03:00
Rémi Verschelde
b9e022302a
Merge pull request #91468 from akien-mga/dap-typo-parsing-PackedVector3Array
DAP: Fix typo in parsing of PackedVector3Array
2024-05-02 19:06:09 +02:00
Rémi Verschelde
7fef538223
Merge pull request #91464 from groud/fix_tilemap_layer_navmesh_baking
Fix TileMapLayer navmesh baking
2024-05-02 19:06:06 +02:00
Rémi Verschelde
5ea3f0bd75
Merge pull request #91143 from RadiantUwU/add-input-amplitude
Add `amplitude` argument to `Input.vibrate_handheld`
2024-05-02 19:06:03 +02:00
Rémi Verschelde
d680b9b9da
DAP: Fix typo in parsing of PackedVector3Array 2024-05-02 18:11:38 +02:00
Radiant
789c6ebdfd Implement amplitude to Input.vibrate_handheld
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: m4gr3d <m4gr3d@users.noreply.github.com>
2024-05-02 19:09:42 +03:00
Gilles Roudière
23b9a9f2de Fix TileMapLayer navmesh baking 2024-05-02 18:06:23 +02:00
Rémi Verschelde
4e9543d849
Merge pull request #91457 from kitbdev/fix-multicaret-disabled
Fix TextEdit crash with multiple carets disabled and paste
2024-05-02 17:31:47 +02:00
Rémi Verschelde
1bee81242e
Merge pull request #91423 from RadiantUwU/wutdahailboi
Fix outdated `AudioEffectSpectrumAnalyzer` documentation
2024-05-02 17:31:43 +02:00
Rémi Verschelde
76f642b962
Merge pull request #91412 from dalexeev/gds-fix-non-static-access-in-static-context
GDScript: Fix access non-static members in static context
2024-05-02 17:31:39 +02:00
Rémi Verschelde
a531452eec
Merge pull request #91384 from kitbdev/fix-spin-slider-margin
Fix editor spin slider RTL and margin
2024-05-02 17:31:36 +02:00
Rémi Verschelde
a7029e4c8a
Merge pull request #91364 from vnen/gdscript-implicit-ready-base-first
GDScript: Call implicit ready on base script first
2024-05-02 17:31:32 +02:00
Rémi Verschelde
7a968c619d
Merge pull request #91140 from RadiantUwU/add-mobile-vr-screen-rect
Add a new property named `offset_rect` to `MobileVRInterface`
2024-05-02 17:31:28 +02:00
Rémi Verschelde
8f2ff22bf5
Merge pull request #90742 from KoBeWi/PR_from_the_future
Change update checker version source
2024-05-02 17:31:25 +02:00
Rémi Verschelde
e249df4f5e
Merge pull request #89275 from bruvzg/status_rect
[StatusIndicator] Add method to get indicator icon screen rect.
2024-05-02 17:31:18 +02:00
George Marques
99b702ea3d
GDScript: Call implicit ready on base script first
It is generally expected that the base class is called before the
inherited clas. This commit implements this behavior for the implicit
ready function (`@onready` annotation) to make it consistent with the
expectations.
2024-05-02 11:25:52 -03:00
kobewi
6e9dc0ee27 Change update checker version source 2024-05-02 15:32:24 +02:00
kit
0162683da4 Fix TextEdit crash with multiple carets disabled 2024-05-02 09:26:08 -04:00
Radiant
9be2f7090a Implement offset_rect property to MobileVRInterface to allow changing screen area. 2024-05-02 16:25:48 +03:00
Radiant
3a85285048 Fix outdated documentation on AudioEffectSpectrumAnalyzer 2024-05-02 16:22:35 +03:00
kit
5fd23730eb Fix editor spin slider RTL and margin 2024-05-02 08:34:46 -04:00
Sofox
b823724e00 Add line limit to Editor Output Log 2024-05-02 13:28:59 +01:00
Rémi Verschelde
06d105e268
Merge pull request #91437 from TokageItLab/auto-capture
Add `auto_capture` option to AnimationPlayer
2024-05-02 14:01:25 +02:00
Rémi Verschelde
6ad0a1ffef
Merge pull request #91098 from bruvzg/rtl_fast_delete
[RTL] Add extra argument to `remove_paragraph` to skip cache invalidation and a method for manual cache invalidation.
2024-05-02 14:01:21 +02:00
Rémi Verschelde
28a18cf1b8
Merge pull request #88763 from BlueCube3310/image-is-compressed-static
Image: Add static `is_format_compressed` function.
2024-05-02 14:01:18 +02:00
Rémi Verschelde
396ce1a8c8
Merge pull request #80223 from AThousandShips/vec_elem
Expose `Vector*` component-wise and scalar `min/max` to scripting
2024-05-02 14:01:09 +02:00
bruvzg
e5205e589f
[StatusIndicator] Add method to get indicator icon screen rect. 2024-05-02 14:39:33 +03:00
bruvzg
360d365b33
[RTL] Adds extra argument to remove_paragraph to skip cache invalidation and a method for manual cache invalidation. 2024-05-02 14:03:21 +03:00
A Thousand Ships
0f5e0d1637
Expose Vector* component-wise and scalar min/max to scripting 2024-05-02 13:02:40 +02:00
Silc Lizard (Tokage) Renew
36abb55dd2 Add auto_capture option to AnimationPlayer 2024-05-02 19:57:36 +09:00
Rémi Verschelde
a0b0b19043
Merge pull request #91446 from HexagonNico/rect-doc-fix
Fix incorrect example in the documentation for the `expand` method in `Rect2`
2024-05-02 12:46:49 +02:00
Rémi Verschelde
b2af040423
Merge pull request #91425 from Sauermann/fix-force-drag-focus-crash
Make `mouse_focus` and `mouse_focus_mask` consistent for force_drag
2024-05-02 12:46:45 +02:00
Rémi Verschelde
4eaafc8fa8
Merge pull request #91375 from paulloz/dotnet/prevent-generator-crash-on-exported-unconstructed-generic-arrays
C#: Fix generator crash w/ generic arrays
2024-05-02 12:46:42 +02:00
Rémi Verschelde
098a4e945e
Merge pull request #91188 from YeldhamDev/love_fixing_other_peoples_regressions
Fix `TabContainer` regressions related to switching tabs in certain cases
2024-05-02 12:46:39 +02:00
Rémi Verschelde
a6a7325e3a
Merge pull request #91127 from CrayolaEater/hinge-joint-cleanup
Deprecate unused parameter `angular_limit/softness` in `HingeJoint3D`
2024-05-02 12:46:36 +02:00
Rémi Verschelde
9cb3a16a8e
Merge pull request #91014 from DeeJayLSP/qoa-wav-playback
Add QOA (Quite OK Audio) as a WAV compression mode
2024-05-02 12:46:32 +02:00
Rémi Verschelde
928441052b
Merge pull request #90608 from raulsntos/editor/enable-plugin-after-adding
Enable `EditorPlugin` added by modules and GDExtensions
2024-05-02 12:46:29 +02:00
Rémi Verschelde
9122286553
Merge pull request #89426 from BlueCube3310/basisu-mult-of-4
BasisUniversal: Fix artifacts on images with resolutions not divisible by 4
2024-05-02 12:46:25 +02:00
Rémi Verschelde
0b6c29f2d2
Merge pull request #89114 from AThousandShips/vec_elem_scalar
[Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
2024-05-02 12:46:22 +02:00
Rémi Verschelde
a21824b293
Merge pull request #85295 from jsjtxietian/use-mutex-protect-max_index-in-ImportThreadData
Use `SafeNumeric` to protect `max_index` in ImportThreadData
2024-05-02 12:46:19 +02:00
Rémi Verschelde
bbb86672fe
Merge pull request #84472 from xiongyaohua/canvas_item_draw_circle_non_filled
Extend `CanvasItem::draw_circle()`, making it also draw unfilled circle.
2024-05-02 12:46:14 +02:00
Rémi Verschelde
3dca3342bf
Merge pull request #81533 from BastiaanOlij/openxr_hand_interaction
Add support for OpenXR hand interaction extension
2024-05-02 12:46:07 +02:00
BlueCube3310
c71490043a Fix BasisU compression on images with resolutions not divisible by 4. 2024-05-02 12:15:02 +02:00
Nico
0854476ef1 Fix incorrect example in the documentation for the expand method in Rect2 2024-05-02 12:06:22 +02:00
Rémi Verschelde
02deedc02b
Merge pull request #91426 from semensanyok/fix-gles3-shader-e41064388e67cc9bec320ee467757089b150bf20
Fix typo in shader breaking gles3
2024-05-02 11:15:33 +02:00
Bastiaan Olij
527c30c594 Add support for OpenXR hand interaction extension 2024-05-02 19:15:02 +10:00
Bogdan Inculet
24bdd0b9c1
Deprecate unused paramater angular_limit/softness in HingeJoint3D 2024-05-02 10:50:58 +02:00
Yaohua Xiong
1f2aa17d14
Extend CanvasItem::draw_circle() with filled, width, and antialiased options
Make it possible to draw unfilled circle, like draw_rect(). Antialising is only implemented for unfilled version.
2024-05-02 10:42:24 +02:00
A Thousand Ships
308dbb8c63
[Core] Add scalar versions of Vector* min/max/clamp/snap(ped)
Convenience for a number of cases operating on single values
2024-05-02 10:31:13 +02:00
semensanyok
e378083fa5 fix typo in e41064388e breaking gles3 2024-05-02 00:32:39 +02:00