Rémi Verschelde
2a8d30aa9f
Merge pull request #97029 from Hilderin/fix-viewport-texture-must-be-set-to-use-it
...
Fix Viewport Texture must be set to use it
2024-09-18 11:15:39 +02:00
Hilderin
c11107b1fb
Fix Viewport Texture must be set to use it
2024-09-17 18:18:07 -04:00
Rémi Verschelde
ab55a40f0c
Merge pull request #97070 from KoBeWi/snaming_ur_inputs
...
Use `SNAME` for `ui` actions in Viewport
2024-09-16 15:25:47 +02:00
kobewi
d805f38dba
Use SNAME for ui actions in Viewport
2024-09-16 14:09:26 +02:00
Rémi Verschelde
391849d232
Merge pull request #96867 from L2750558108/remove-gui-key-event-accepted-shit
...
Remove useless `Viewport::gui.key_input_accepted`
2024-09-16 13:35:13 +02:00
Rémi Verschelde
8ebfd89359
Merge pull request #96024 from Ryan-000/expose_get_rpc_config
...
Expose `get_rpc_config` and `get_node_rpc_config`
2024-09-16 13:34:34 +02:00
Rémi Verschelde
ac80ba71e2
Merge pull request #93500 from anniryynanen/multi-press
...
Improve button behavior when multiple mouse buttons are used at the same time
2024-09-16 13:34:15 +02:00
Anni Ryynänen
2033510a65
Improve button behavior when multiple mouse buttons are used at the same time
...
- To emit `pressed`, buttons require that the press was initiated while hovering.
- Controls can't grab focus from a mouse click if they're not hovered.
- Hovers are updated both before and after a handled mouse button event.
2024-09-15 19:06:10 +03:00
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
2750558108
ccc6e5d25f
Remove Useless Viewport::gui.key_input_accepted
2024-09-13 20:52:05 +08: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
rune-scape
0dde931bc9
StringName: Fix empty hash
...
+Fixed compat hashes
2024-09-09 13:30:02 -07:00
bruvzg
bdd5117086
[Label3D] Fix updating labels in subvieports on oversampling change.
2024-09-08 15:11:13 +03:00
graydoubt
e589c5baf3
Expose Viewport.gui_cancel_drag() to GDScript as a counterpart to Control.force_drag()
2024-09-06 06:20:22 -04:00
Ryan
8835f326b1
Expose get_rpc_config and get_node_rpc_config
...
add documentation
Update doc/classes/Node.xml
change name of get_node_rpc_config to get_rpc_config
Co-Authored-By: moondog <159832633+dog-on-moon@users.noreply.github.com>
Co-Authored-By: Micky <66727710+Mickeon@users.noreply.github.com>
2024-09-04 15:45:22 -04:00
Rémi Verschelde
e2dd56bea7
Merge pull request #95902 from kitbdev/remove-forced-mouse-focus
...
Clean up Viewport's `forced_mouse_focus`
2024-09-03 17:38:17 +02:00
Rémi Verschelde
13a90e938f
Merge pull request #70096 from rune-scape/stringname-dict
...
StringName Dictionary keys
2024-09-03 17:38:06 +02:00
aaronp64
7a9acd5aca
Fix SubViewport/AudioStreamPlayer2D crash
...
Updated Viewport destructor to remove itself from World2D, to avoid World2D keeping invalid pointers.
2024-09-03 08:27:47 -04:00
rune-scape
154049ce17
StringName Dictionary keys
...
also added 'is_string()' method to Variant
and refactored many String type comparisons to use it instead
2024-08-29 13:39:27 -07:00
Rémi Verschelde
e98aaf1caa
Merge pull request #94477 from RedMser/typos-batch-1
...
Fix various typos
2024-08-28 00:12:12 +02:00
Rémi Verschelde
f565996472
Merge pull request #92536 from Daylily-Zeleen/daylily-zeleen/fix_3d_input_event
...
Add missing check to avoid passing handled input event to collision object 3d.
2024-08-28 00:10:57 +02:00
Rémi Verschelde
40c17d6380
Merge pull request #95846 from jadoc/fix-tooltips
...
Only reset the tooltip timer when the mouse has actually moved
2024-08-26 22:45:28 +02:00
Alex Docauer
125ff3213a
Only reset tooltip timer when mouse actually moved
...
InputEventMouseMotion isn't guaranteed to fire only on actual mouse
movement. It's not uncommon for the underlying OS motion event to be
sent either by the OS itself or another application even though the
mouse hasn't moved. Godot will generate such zero-motion
InputEventMouseMotion events itself for things like cursor shape
changes.
Once started, the tooltip timer is reset only after a mouse movement of
at least 5 pixels in one frame.
2024-08-22 19:20:41 -07:00
Rémi Verschelde
091212b4f1
Merge pull request #93602 from aaronp64/inspector_latency
...
Improve Editor Inspector/Theme item lookup performance
2024-08-22 00:10:26 +02:00
kit
307e40e873
Clean up Viewport forced_mouse_focus
2024-08-21 09:37:44 -04:00
aaronp64
7593e55527
Improve Editor Inspector/Theme item lookup performance
...
Changes to reduce the latency between changing node selection in the editor and seeing the new node reflected in the Inspector tab
- Use Vector instead of List for ThemeOwner::get_theme_type_dependencies and related functions
- Use Vector instead of List for ThemeContext::themes, set_themes(), and get_themes()
- Add ClassDB:get_inheritance_chain_nocheck to get all parent/ancestor classes at once, to avoid repeated ClassDB locking overhead
- Update BIND_THEME_ITEM macros and ThemeDB::update_class_instance_items to use provided StringNames for call to ThemeItemSetter, instead of creating a new StringName in each call
These changes reduce the time taken by EditorInspector::update_tree by around 30-35%
2024-08-20 13:39:40 -04:00
Rémi Verschelde
0ab62a128a
Merge pull request #91971 from Delsin-Yu/WrapControls_ContentScaleFactor
...
Fix `Window.wrap_controls` does not account for the `content_scale_factor`
2024-08-19 16:04:44 +02:00
jordi
61e2aa7914
Redraw SubViewportContainer on SubViewport size change
2024-08-19 14:53:53 +02:00
DE-YU
46abbae2b0
Fix Window.wrap_controls does not account for the content_scale_factor
2024-08-19 14:48:43 +02:00
Rémi Verschelde
6d22b8026d
Merge pull request #90992 from RadiantUwU/fix_node_duplicate
...
Fix `Node.duplicate()` crash when duplicating a node that cannot be instantiated.
2024-08-19 14:33:31 +02:00
Rémi Verschelde
f01e052162
Merge pull request #95549 from timothyqiu/split-translation-server
...
Split `TranslationServer` into its own file
2024-08-16 14:36:16 +02:00
Rémi Verschelde
46c6865979
Merge pull request #92391 from rburing/fti_3d
...
Physics interpolation (3D)
2024-08-16 10:33:37 +02:00
Rémi Verschelde
a86c3e44dd
Merge pull request #91965 from aaronp64/tooltip_size
...
Fix tooltip content being cut off at some display scales
2024-08-16 10:33:25 +02:00
Haoyu Qiu
7343dc3a5d
Split TranslationServer into its own file
2024-08-15 15:00:47 +08:00
Radiant
70f41e414e
Fix node.duplicate, return nullptr if this operation fails.
2024-08-02 16:26:19 +03:00
kit
fce60c2b3f
Fix update mouse cursor state wrong mouse position
2024-07-31 14:10:40 -04:00
Daylily-Zeleen
f90f663258
Avoid passing handled input event to collision object 3d.
2024-07-27 14:58:56 +08:00
Alvin Wong
97aa278edb
Pass window exclusive and transient properties for subwindow creation
...
On Windows this allows to avoid having to change the owner of the window
after it has been created, which in rare circumstances may cause the
window to bug out.
2024-07-25 00:27:27 +08:00
Rémi Verschelde
edefcf6d1e
Merge pull request #94230 from CrazyRoka/optimize-gdscript-get-position
...
Optimize `Node::is_readable_from_caller_thread()` by prioritizing the most common case
2024-07-19 11:10:43 +02:00
RedMser
f9258ff928
Fix typos
2024-07-17 18:53:03 +02:00
matheusmdx
260c05152d
Fix resources being skipped in InstancePlaceholder
2024-07-17 10:25:29 -03:00
CrazyRoka
6c86268fdd
Decorate rare !data.inside_tree condition with unlikely
2024-07-12 13:38:41 +01:00
CrazyRoka
53e9d90850
Optimize Node::is_readable_from_caller_thread() by prioritizing the most common case.
2024-07-11 20:40:00 +01:00
Ricardo Buring
2f8ab4a654
Fixed Timestep Interpolation (3D)
...
Adds 3D fixed timestep interpolation to the rendering server.
This does not yet include support for multimeshes or particles.
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-07-07 22:15:23 +02:00
Ricardo Buring
ceadbaa299
Fixed Timestep Interpolation: Fix behaviour on pause
...
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-07-07 16:48:17 +02:00
kobewi
bef2e62c88
Fix duplicating nodes with Array properties
2024-06-27 19:17:50 +02:00
bruvzg
c689823c60
Fix subwindow titlebar redraw on oversampling change.
2024-06-23 00:01:56 +03:00
Ainsley
915e39b3c9
Use `_camera_3d_set` instead of change camera_3d directly
2024-06-20 17:21:38 +08:00
Rémi Verschelde
0ec023f101
Merge pull request #92678 from warriormaster12/dup_prop_before_remap_resources
...
Duplicate properties first before remapping resources
2024-06-18 14:08:39 +02:00
bruvzg
18393eb09a
[Window] Ignore duplicate mouse enter events.
2024-06-12 22:37:28 +03:00