diff options
author | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-02-13 13:38:11 +0400 |
---|---|---|
committer | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-02-16 07:54:35 +0400 |
commit | 5689dbc2090e5479062fb6f5155aa2acf70929e6 (patch) | |
tree | 6093c5558cb92a7a15288a11c54052839b814dfe /editor/plugins/node_3d_editor_plugin.cpp | |
parent | a9bb8509f2faac81bdb995c6c89a5347372f3498 (diff) | |
download | redot-engine-5689dbc2090e5479062fb6f5155aa2acf70929e6.tar.gz |
Allow to abort `SpinSlider` value changes
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 92c1b1be1d..f0cb2aa3a5 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1488,6 +1488,10 @@ Transform3D Node3DEditorViewport::_compute_transform(TransformMode p_mode, const } void Node3DEditorViewport::_surface_mouse_enter() { + if (Input::get_singleton()->get_mouse_mode() == Input::MOUSE_MODE_CAPTURED) { + return; + } + if (!surface->has_focus() && (!get_viewport()->gui_get_focus_owner() || !get_viewport()->gui_get_focus_owner()->is_text_field())) { surface->grab_focus(); } |