Repository: godotengine/godot
File: editor/scene/3d/node_3d_editor_plugin.cpp (C++)

Code before:
						break;
					}

					if (!clicked_wants_append && node_selected && spatial_editor->get_tool_mode() == Node3DEditor::TOOL_MODE_MOVE) {
						begin_transform(TRANSFORM_TRANSLATE, false);
						break;
					}

					if (!clicked_wants_append && node_selected && spatial_editor->get_tool_mode() == Node3DEditor::TOOL_MODE_SCALE) {
						begin_transform(TRANSFORM_SCALE, false);
						break;
					}

					surface->queue_redraw();
				} else {
					if (ruler->is_inside_tree()) {
						EditorNode::get_singleton()->get_scene_root()->remove_child(ruler);
						ruler_start_point->set_visible(false);
						ruler_end_point->set_visible(false);
						ruler_label->set_visible(false);
						collision_reposition = false;
						break;
					}

					if (_edit.gizmo.is_valid()) {
						//Certain gizmo plugins should be able to commit handles without dragging them.
						if (_edit.original_mouse_pos != _edit.mouse_pos || _edit.gizmo->get_plugin()->can_commit_handle_on_click()) {
							_edit.gizmo->commit_handle(_edit.gizmo_handle, _edit.gizmo_handle_secondary, _edit.gizmo_initial_value, false);
						}

						spatial_editor->get_single_selected_node()->update_gizmos();
						_edit.gizmo = Ref<EditorNode3DGizmo>();
						break;
					}

					if (after != EditorPlugin::AFTER_GUI_INPUT_CUSTOM) {
						selection_in_progress = false;

						if (clicked.is_valid()) {
							_select_clicked(false);
						}

						if (cursor.region_select) {
							_select_region();
							cursor.region_select = false;
							surface->queue_redraw();
						}
					}

					if (!_edit.instant && _edit.mode != TRANSFORM_NONE) {
						Node3D *selected = spatial_editor->get_single_selected_node();

Review comment (suggestion):
```suggestion
						// Certain gizmo plugins should be able to commit handles without dragging them.
```

Code after:
						break;
					}

					if (!clicked_wants_append && node_selected && spatial_editor->get_tool_mode() == Node3DEditor::TOOL_MODE_MOVE) {
						begin_transform(TRANSFORM_TRANSLATE, false);
						break;
					}

					if (!clicked_wants_append && node_selected && spatial_editor->get_tool_mode() == Node3DEditor::TOOL_MODE_SCALE) {
						begin_transform(TRANSFORM_SCALE, false);
						break;
					}

					surface->queue_redraw();
				} else {
					if (ruler->is_inside_tree()) {
						EditorNode::get_singleton()->get_scene_root()->remove_child(ruler);
						ruler_start_point->set_visible(false);
						ruler_end_point->set_visible(false);
						ruler_label->set_visible(false);
						collision_reposition = false;
						break;
					}

					if (_edit.gizmo.is_valid()) {
						// Certain gizmo plugins should be able to commit handles without dragging them.
						if (_edit.original_mouse_pos != _edit.mouse_pos || _edit.gizmo->get_plugin()->can_commit_handle_on_click()) {
							_edit.gizmo->commit_handle(_edit.gizmo_handle, _edit.gizmo_handle_secondary, _edit.gizmo_initial_value, false);
						}

						spatial_editor->get_single_selected_node()->update_gizmos();
						_edit.gizmo = Ref<EditorNode3DGizmo>();
						break;
					}

					if (after != EditorPlugin::AFTER_GUI_INPUT_CUSTOM) {
						selection_in_progress = false;

						if (clicked.is_valid()) {
							_select_clicked(false);
						}

						if (cursor.region_select) {
							_select_region();
							cursor.region_select = false;
							surface->queue_redraw();
						}
					}

					if (!_edit.instant && _edit.mode != TRANSFORM_NONE) {
						Node3D *selected = spatial_editor->get_single_selected_node();