Merge pull request #91845 from ryevdokimov/disable-freelook-when-drag-and-drop

Disable viewports inputs when dragging and dropping into the viewport
This commit is contained in:
Rémi Verschelde 2024-06-19 10:53:17 +02:00
commit 4949e96b0b
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1645,7 +1645,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
}