File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1935,7 +1935,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
19351935 }
19361936
19371937 // Transform gizmo
1938- if (_transform_gizmo_select (_edit.mouse_pos )) {
1938+ if (transform_gizmo_visible && _transform_gizmo_select (_edit.mouse_pos )) {
19391939 break ;
19401940 }
19411941
@@ -2203,7 +2203,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
22032203 }
22042204 }
22052205
2206- if (spatial_editor->get_current_hover_gizmo ().is_null () && !m->get_button_mask ().has_flag (MouseButtonMask::LEFT) && _edit.gizmo .is_null ()) {
2206+ if (transform_gizmo_visible && spatial_editor->get_current_hover_gizmo ().is_null () && !m->get_button_mask ().has_flag (MouseButtonMask::LEFT) && _edit.gizmo .is_null ()) {
22072207 _transform_gizmo_select (_edit.mouse_pos , true );
22082208 }
22092209
You can’t perform that action at this time.
0 commit comments