From 824d21b4411e54c5a59979acb51c2cb875481313 Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov Date: Sat, 11 May 2024 13:42:31 -0400 Subject: [PATCH] Disable viewport inputs when dragging and dropping into the viewport --- editor/plugins/node_3d_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index b50c16c25f7..b5b005d0664 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 &p_event) { } void Node3DEditorViewport::_sinput(const Ref &p_event) { - if (previewing) { + if (previewing || get_viewport()->gui_get_drag_data()) { return; //do NONE }