Commit graph

67606 commits

Author SHA1 Message Date
Markus Sauermann
60aaa017ff Enable Drag and Drop for SubViewports and Windows
Make Drag and Drop an application-wide operation.
This allows do drop on Controls in other Viewports/Windows.

In order to achieve this, `Viewport::_update_mouse_over` is adjusted to
remember the Control, that the mouse is over (possibly within nested
viewports). This Control is used as a basis for the Drop-operation, which
replaces the previous algorithm, which was only aware of the topmost
Viewport.

Also now all nodes in the SceneTree are notified about the Drag and Drop
operation, with the exception of SubViewports that are not children of
SubViewportContainers.
2024-09-15 01:06:02 +02:00
DeeJayLSP
e3f3daac6f AudioStreamMP3: Use a LocalVector to store data 2024-09-14 19:14:47 -03:00
Silc Lizard (Tokage) Renew
8d30ccd067 Add missing "Quad" capture TransitionType enum hint 2024-09-15 06:42:04 +09:00
Hilderin
46edd6df55 Fix script properties reload from external editor 2024-09-14 15:07:53 -04:00
Silc Lizard (Tokage) Renew
2b3cf2451f Fix syncing PhysicalBone internal poses individually 2024-09-15 01:46:12 +09:00
bruvzg
8d039146d9
[macOS] Fix dynamic library lookup for system libraries. 2024-09-14 18:22:36 +03:00
Hilderin
e064efccbc Fix editor_doc_cache locked on editor startup 2024-09-14 09:37:04 -04:00
Mounir Tohami
701188fd1e Fix VSlider grabber area. 2024-09-14 12:40:41 +00:00
Rémi Verschelde
6681f2563b
Merge pull request #96977 from stuartcarnie/96960_use_after_free
2D: Fix use-after-free in batch rendering; regression of #95574
2024-09-14 10:05:38 +02:00
Stuart Carnie
c113e5b143
2D: Fix use-after-free in batch rendering
Closes #96960
Fixes regression of #95574 using fix from #95666
2024-09-14 07:50:39 +10:00
Kiisu_Master
3a1160bff1
Fix typo in RenderingServer docs 2024-09-13 21:57:51 +03:00
Riteo
c15cd3acc4 Wayland: Simplify cursor code and fix custom cursors
Initially the WaylandThread cursor code was supposed to be as stateless
as possible but, as time went on, this wasn't possible.

This expectation made the resulting API quite convoluted, so this patch
aims to simplify it substantially bot in terms of API surface and, most
importantly, in terms of actual implementation complexity.

This patch also fixes custom cursors since I accidentally changed the
mmap flags to MAP_PRIVATE some time ago. This took me hours to notice.
2024-09-13 19:08:53 +02:00
Thaddeus Crews
bf811db6c8
Style: Consolidate & migrate GDScript .editorconfig
• Moved to test project root so a new `.editorconfig` isn't constantly generated.
• Disable attributes only in the files which use invalid syntax deliberately
2024-09-13 11:12:17 -05:00
Fredia Huya-Kouadio
741efa632a Update the Android editor flavors to avoid vendor-specific references 2024-09-13 08:53:29 -07:00
Thaddeus Crews
41a81f5360
Style: Format yaml files 2024-09-13 08:06:53 -05:00
2750558108
ccc6e5d25f Remove Useless Viewport::gui.key_input_accepted 2024-09-13 20:52:05 +08:00
Pedro J. Estébanez
e2fd88ed91 Revert "WorkerThreadPool: Enhance lifetime for more flexibility"
This reverts commit 2d1dd41ef5.
2024-09-13 14:39:11 +02:00
Pedro J. Estébanez
f31867d2b9 EditorResourcePreview: Let loads complete after exit requested 2024-09-13 12:19:06 +02:00
Rémi Verschelde
74de05a01c
Merge pull request #96912 from Chaosus/shader_fix_sky
Fix broken sky shader
2024-09-13 11:49:05 +02:00
Pedro J. Estébanez
e3ddf3d44a ResourceLoader: Fixup resource changed feature (no. 2) 2024-09-13 11:32:55 +02:00
Rémi Verschelde
d5d6c730bf
Merge pull request #96934 from smix8/planemesh_gizmo
Fix `MeshInstance3D` gizmo redraw performance for `PlaneMesh` with larger subdiv value
2024-09-13 11:22:08 +02:00
Rémi Verschelde
84f1fe781c
Merge pull request #96910 from zaevi/improve_GraphEdit_dot_grid
GraphEdit: Improve dotted pattern grid performance
2024-09-13 11:22:05 +02:00
Rémi Verschelde
f2ce94fdde
Merge pull request #96885 from LuizZak/grow_mask_sqrt_fix
Avoid expensive sqrt operation in hot loop of `BitMap.grow_mask`
2024-09-13 11:22:01 +02:00
Rémi Verschelde
0f86f30cf0
Merge pull request #96860 from kroketio/from-ext-alloc-check
Vulkan: Account for externally backed textures
2024-09-13 11:21:58 +02:00
Rémi Verschelde
97843116f6
Merge pull request #96759 from Geometror/implement-autostart-profilers
Implement autostart for all profilers
2024-09-13 11:21:54 +02:00
Rémi Verschelde
b60e16ff62
Merge pull request #96592 from bruvzg/alt_u
Add Control+Shift+U (rebindable) action for Unicode input, show hex as it is entered.
2024-09-13 11:21:51 +02:00
Rémi Verschelde
0d37bc4781
Merge pull request #96532 from AThousandShips/ref_delete_null
[Core] Optionally delete `Ref` `nullptr` comparisons
2024-09-13 11:21:48 +02:00
Rémi Verschelde
9a5d0be90f
Merge pull request #96466 from object71/fix-polygon-editor-losing-toolbar-96238
Fix polygon node losing its UV toolbar
2024-09-13 11:21:44 +02:00
Rémi Verschelde
ac652cf2a0
Merge pull request #96386 from AThousandShips/enum_inspector_improve
[Editor] Merge duplicate entries in enum property inspector
2024-09-13 11:21:40 +02:00
Rémi Verschelde
40d8d82b85
Merge pull request #93779 from hayahane/fix_get_property_cs
[C#] Fix `get_property_list` get wrong order of properties
2024-09-13 11:21:37 +02:00
Rémi Verschelde
04456cf42d
Merge pull request #93427 from AThousandShips/editor_setting_doc
[Editor] Expose more editor settings to documentation
2024-09-13 11:21:32 +02:00
Rémi Verschelde
5a56d11ad1
Merge pull request #96915 from Faless/mp/rpc_sort_custom
[MP] Fix broken RPCs after dictionary keys type change
2024-09-13 11:21:29 +02:00
Chaosus
4a16a0d60c Fix broken sky shader 2024-09-13 08:53:26 +03:00
allison
c46b5af06b fix astar partial path destination can be solid/disabled
* AStar2D, AStar3D and AStarGrid2D will now return a path when allow_partial_path is true even if the destination is a solid/disabled point.

# Conflicts:
#	core/math/a_star_grid_2d.cpp
#	core/math/a_star_grid_2d.h
2024-09-12 20:09:41 -07:00
clayjohn
74a1c85ba3 Add CommandQueue to Betsy 2024-09-12 13:54:24 -07:00
smix8
b8de7b72c6 Fix gizmo redraw performance for PlaneMesh with larger subdiv value
Fixes gizmo redraw performance for PlaneMesh with larger subdiv value.
2024-09-12 22:31:56 +02:00
Thaddeus Crews
b3d7960df4
Core: Fix operator[] for typed dictionaries 2024-09-12 11:10:17 -05:00
Zae
84102af090 GraphEdit: Improve dotted pattern grid performance 2024-09-12 23:58:42 +08:00
Sander
41fdc55b05 Vulkan: account for externally backed textures (i.e., created via texture_create_from_extension()), as such textures lack ownership information.
More info: #96832
2024-09-12 18:15:23 +03:00
Fabio Alessandrelli
32e4ab91e8 [MP] Fix broken RPCs after dictionary keys type change
As part of RPCs processing, they need to be sorted reliably across all
peers, so that unique IDs can be assigned to greatly optimize the
network layer.

The RPC configuration nodes are stored in dictionaries which, until
recently, always casted StringName keys to String.

Since method names (keys) in the RPC configuration were StringName,
a side effect of the above change is that sorting the dictionary keys no
longer sort them alphabetically by default (StringName are compared
using their pointers).

This commit changes the RPC processing logic to use sort_custom to
provide a function that can handle the StringName comparison.
2024-09-12 16:38:14 +02:00
A Thousand Ships
7d8684fdb5
[Editor] Merge duplicate entries in enum property inspector
This helps with confusion over how selecting a key with a duplicate
value won't be selected as only the first entry with a particular value will
be selected.
2024-09-12 16:05:11 +02:00
Luiz Fernando Silva
293cc2126e Avoid expensive sqrt operation in hot loop of BitMap.grow_mask 2024-09-12 11:04:57 -03:00
A Thousand Ships
dd6443193c
[Editor] Expose more editor settings to documentation
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-09-12 15:34:49 +02:00
aXu-AP
610d98f3ea Make script list default wider, minimum narrower
Give more space to the script lists by default, but makes minimum smaller than it was. Unifies script editor and shader editor to use same values.
2024-09-12 14:51:22 +03:00
A Thousand Ships
df29cc696f
[Core] Optionally delete Ref nullptr comparisons
Adds an optional (default false) compile option to enable comparing
`Ref` to `nullptr` to ensure correct use, as well as future expandsion
for more general dev checks (enabled with `dev_mode`)
2024-09-12 11:26:49 +02:00
bruvzg
b776f55bcb
Add Control+Shift+U (rebindabe) action for Unicode input, show hex as it is entered. 2024-09-12 11:47:24 +03:00
Rémi Verschelde
83d54ab2ad
Merge pull request #96708 from bruvzg/lbl3d_os
[Label3D] Fix updating labels in subvieports on oversampling change.
2024-09-12 10:28:52 +02:00
Rémi Verschelde
cc52112144
Merge pull request #96643 from bruvzg/fs_links
[FileSystem Dock] Add symlink indicator and tooltip.
2024-09-12 10:28:44 +02:00
Rémi Verschelde
6b9f4418bb
Merge pull request #96900 from bruvzg/fd_startup
Fix native file dialog showing on loading project in editor.
2024-09-12 09:57:35 +02:00
Rémi Verschelde
a8904b9622
Merge pull request #96753 from Dowsley/realtime-animation-player-bezier-property-changes
Update AnimationPlayer in real-time when bezier curve properties or bezier editor changes
2024-09-12 09:57:29 +02:00