Commit Graph

62613 Commits

Author SHA1 Message Date
kit 860bff926e Allow docks to be closed 2024-03-29 22:03:59 -04:00
Aaron Franke 158fcf107c
Fix some uses of float and real_t in core/math 2024-03-29 16:44:12 -07:00
K. S. Ernest (iFire) Lee 15f1a0fba3 Fixed loop condition in bone mapping
Corrected the for-loop condition in the auto_mapping_process function. Previously, it was checking if children.size() is non-zero, which resulted in an infinite loop
2024-03-29 07:22:17 -07:00
melquiadess 70ea3e22a6 Use ?. (and ?.let) safe operators instead of !!
This PR prevents potential NPEs, and follows Kotlin conventions more closely
by replacing the unsafe !! operator with safe ?. (or ?.let) (usually
!! would only be used very rarely, and with a good reason - there is one
place left in this PR where !! makes sense), and by replacing Java style
'if (x != null)' with Kotlin's '?.'
2024-03-28 23:36:38 +00:00
Bo Thompson 75d65195ae
Remove a redundant `MAX` comparison within a loop in `compute_image_metrics` 2024-03-28 22:23:15 +01:00
Markus Sauermann 94e1943f02 Make `TextEdit.clip_contents` more transparent to users
Instead of ignoring `TextEdit.clip_contents`, use it with a default
value `true`. in the same way as `RichTextLabel`.
2024-03-28 21:07:27 +01:00
Markus Sauermann 48ea019322 Fix a special case for button masks
In certain situations it is possible that in a `Viewport` the same
mouse button is pressed twice in series without releasing it in
between.
In this case, focus stealing should happen to ensure, that the
mouse button is not sent unintentionally to the previously focused
Control node.
2024-03-28 20:22:49 +01:00
Rémi Verschelde 29b3d9e9e5
Merge pull request #89980 from AThousandShips/ci_better_fix
[CI] Improve fetching of changed files
2024-03-28 19:06:55 +01:00
Hugo Locurcio 1e4c7c8a57
Rename Official support level to Featured in the editor asset library
This paves the way for integrating hand-picked high-quality assets
to be displayed in the project manager when accepting the
"you don't have any projects yet" dialog.
2024-03-28 18:40:32 +01:00
Andre Franco 5c19fcbd57 Fix #88892: TreeItem shows cell edit in the wrong column when SelectMode=Row and TreeItem has multiple columns
Editor would not be brought up when clicking on all but the last column on a TreeItem with SelectMode=Row with
multiple columns and when the editor was being brought up when clicking on the last column, it was editing the first column

Fixed draw_item, gui_input and edit_selected functions by setting set_meta parameter for each column
Fixed select_single_item function by changing selected_col depending on input
2024-03-28 15:31:42 +00:00
A Thousand Ships 950743c3d8
[CI] Improve fetching of changed files
PRs always use a merge into the repo on checkout, so checking for
`HEAD^1` will show all the changes regardless of the number of commits
in a PR
2024-03-28 13:53:36 +01:00
Zae 361f693adc Editor: Disable auto-translation of titles in AssetLib. 2024-03-28 20:39:43 +08:00
jsjtxietian 41dce99831 Reset `tab_closing_menu_option` when cancel closing editor 2024-03-28 19:22:52 +08:00
bruvzg 61f7145f43
[Native File Dialog] Add support for using native dialogs in the editor. 2024-03-28 11:53:03 +02:00
Rémi Verschelde 86415f0245
Merge pull request #89963 from timothyqiu/auto-translation
Fix unexpected auto-translation of more editor components
2024-03-28 10:47:42 +01:00
Rémi Verschelde af08342fd8
Merge pull request #89957 from warriormaster12/regress-dup
Fix regression when duplicating a node with a resource attached
2024-03-28 10:47:39 +01:00
Rémi Verschelde 3881778ebc
Merge pull request #89953 from bruvzg/macos_menu_shortcuts
[macOS] Fix non-global native menu shortcuts.
2024-03-28 10:47:34 +01:00
Rémi Verschelde 237479ffe8
Merge pull request #89946 from wlsnmrk/action-press-strength-clamp
Fix `Input.action_press()` accepting out-of-bounds strength values
2024-03-28 10:47:31 +01:00
Rémi Verschelde 669fc368ac
Merge pull request #89922 from brno32/override-gutter-icon-inner-class-method
Refactor check for overriden methods in inner classes
2024-03-28 10:47:28 +01:00
Rémi Verschelde b23d7c3645
Merge pull request #89915 from KoBeWi/podzasób
Disable auto-translation in sub-resource list menu
2024-03-28 10:47:24 +01:00
Rémi Verschelde af96671fa3
Merge pull request #89912 from timothyqiu/filtering
Fix wrong extension filter for dependency editor
2024-03-28 10:47:21 +01:00
Rémi Verschelde 4e4bc3b39a
Merge pull request #89911 from AThousandShips/peering_bit
[TileSet] Expose `TileData.is_valid_terrain_peering_bit`
2024-03-28 10:47:18 +01:00
Rémi Verschelde 7092230df6
Merge pull request #89907 from bruvzg/nat_dlg_ftr_flags
[DisplayServer] Add separate feature flags for different native dialog types.
2024-03-28 10:47:15 +01:00
Rémi Verschelde df6f4ce5e9
Merge pull request #89851 from rburing/bind_6dof_enums
Bind constants related to 6DOF joints
2024-03-28 10:47:11 +01:00
Rémi Verschelde d28fb26ab0
Merge pull request #89716 from theromis/master
[X11] Add more details to large icon size warning
2024-03-28 10:47:08 +01:00
Rémi Verschelde 1260ee661e
Merge pull request #89206 from bruvzg/pipe_api
Implement pipe API for executed processes IO redirection.
2024-03-28 10:47:00 +01:00
Hugo Locurcio e334bf6df4
Tweak OpenXR alert to mention WMR only on Windows
WMR isn't supported on non-Windows platforms, so there's no point
in mentioning it in the error message as it's not a possible
cause for OpenXR not initializing.
2024-03-28 06:17:54 +01:00
Haoyu Qiu f298aaa956 Fix unexpected auto-translation of more editor components 2024-03-28 10:50:57 +08:00
Jakub Mateusz Marcowski c43eab55a4
embree: Update to 4.3.1 2024-03-27 22:10:35 +01:00
bruvzg 37e0be37d8
[macOS] Fix non-global native menu shortcuts. 2024-03-27 22:26:44 +02:00
Markus Sauermann 945babc619 Prohibit execution of delayed input events by different means
In some cases it can happen, that the order of input events and
window events is not followed, when input buffering or input accumulation
is active.

The display server order `InputEvent` => window-event gets changed to
window-event => `InputEvent` which becomes problematic in certain
situations.

This PR makes sure, that the order is adhered to by flushing input events
before a window event is sent.
Previously this problem was mitigated by discarding these delayed events.
But this solution was problematic in the setting of android input events.
2024-03-27 20:58:15 +01:00
Rémi Verschelde d2f9245ddc
Merge pull request #89944 from AThousandShips/pr_fetch_fix
[CI] Work around diff size limit for static checks
2024-03-27 20:07:08 +01:00
A Thousand Ships 62531ea2d1
[CI] Work around diff size limit for static checks 2024-03-27 17:01:39 +01:00
Mark Wilson 41e70db8b1 Fix action_press() by clamping strength to 0, 1
Changed Input.action_press() treatment of strength parameter to match
behavior of InputEventAction and documentation, by clamping between 0
and 1. Fixes Input.get_action_strength() returning values over 1 when
large values are passed to Input.action_press().
2024-03-27 11:17:40 -04:00
warriormaster12 9533543aa5 Fix duplicating resources regression 2024-03-27 11:51:29 +02:00
bruvzg 082b420c0a
Implement `OS.execute_with_pipe` method to run process with redirected stdio.
Implement `pipe://*` path handling for creation of named pipes.
2024-03-27 11:41:16 +02:00
bruvzg 607cc27152
[Linux/Portal] Fix incorrect DBus connection usage. 2024-03-27 09:18:31 +02:00
jsjtxietian 34eff85014 Support “clear points” function in Path3D editor 2024-03-27 12:40:30 +08:00
kobewi 25f9f923a1 Rename some arguments called "position" 2024-03-27 01:28:24 +01:00
Alex Drozd fcb0b8d0bf Refactor check for overriden methods in inner classes 2024-03-26 22:14:57 +01:00
kobewi ad7d54174b Disable auto-translation in sub-resource list menu 2024-03-26 17:47:30 +01:00
Haoyu Qiu e1ee838d11 Fix wrong extension filter for dependency editor 2024-03-26 23:51:30 +08:00
A Thousand Ships d4fcca4545
[TileSet] Expose `TileData.is_valid_terrain_peering_bit` 2024-03-26 16:07:50 +01:00
bruvzg dc01658ee9
[DisplayServer] Add separate feature flags for different native dialog types. 2024-03-26 15:18:06 +02:00
Rémi Verschelde 7d151c8381
Merge pull request #89902 from timothyqiu/not-available
Return `ERR_UNAVAILABLE` if native dialog is not supported
2024-03-26 13:45:53 +01:00
Rémi Verschelde 3fa6ec7285
Merge pull request #89901 from jsjtxietian/path3d
Fix Path3D picking working incorrectly when viewport is in half resolution
2024-03-26 13:45:50 +01:00
Rémi Verschelde bad1f4aae5
Merge pull request #89900 from bruvzg/nmenu_move
[NativeMenu] Move files to the `display` subfolder.
2024-03-26 13:45:46 +01:00
Rémi Verschelde aed1775cf2
Merge pull request #89883 from timothyqiu/replication-pin
Improve replication editor's pin button
2024-03-26 13:45:42 +01:00
Rémi Verschelde 60d37f1d49
Merge pull request #89843 from kleonc/csharp-transform3d-interpolate-with-first-scale-then-rotate
[C#] Fix `Transform3D.InterpolateWith` applying rotation before scale
2024-03-26 13:45:39 +01:00
Rémi Verschelde cff7de077b
Merge pull request #89838 from Chronos-W/update-shortcut-input-method-doc
Add reference to InputEventJoypadButton in `_shortcut_input` doc
2024-03-26 13:45:35 +01:00