diff options
author | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-05-11 13:42:31 -0400 |
---|---|---|
committer | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-05-12 10:02:39 -0400 |
commit | 824d21b4411e54c5a59979acb51c2cb875481313 (patch) | |
tree | 19a4687ef2c2e50523a33c45089f6131cdfce6e4 /editor/plugins/node_3d_editor_plugin.cpp | |
parent | bdc0316217940a8ccc80ce536547d42e6477adf4 (diff) | |
download | redot-engine-824d21b4411e54c5a59979acb51c2cb875481313.tar.gz |
Disable viewport inputs when dragging and dropping into the viewport
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index b50c16c25f..b5b005d066 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1614,7 +1614,7 @@ void Node3DEditorViewport::input(const Ref<InputEvent> &p_event) { } void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) { - if (previewing) { + if (previewing || get_viewport()->gui_get_drag_data()) { return; //do NONE } |