mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
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:
commit
4949e96b0b
@ -1645,7 +1645,7 @@ void Node3DEditorViewport::input(const Ref<InputEvent> &p_event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Node3DEditorViewport::_sinput(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
|
return; //do NONE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user