Fix being able to select hidden transform gizmo
This commit is contained in:
committed by
robert yevdokimov
parent
4d1f26e1fd
commit
51678cc21b
@ -1931,7 +1931,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
|
||||
// Transform gizmo
|
||||
if (_transform_gizmo_select(_edit.mouse_pos)) {
|
||||
if (transform_gizmo_visible && _transform_gizmo_select(_edit.mouse_pos)) {
|
||||
break;
|
||||
}
|
||||
|
||||
@ -2138,7 +2138,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||
}
|
||||
}
|
||||
|
||||
if (spatial_editor->get_current_hover_gizmo().is_null() && !m->get_button_mask().has_flag(MouseButtonMask::LEFT) && _edit.gizmo.is_null()) {
|
||||
if (transform_gizmo_visible && spatial_editor->get_current_hover_gizmo().is_null() && !m->get_button_mask().has_flag(MouseButtonMask::LEFT) && _edit.gizmo.is_null()) {
|
||||
_transform_gizmo_select(_edit.mouse_pos, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user