From 75b4ea05a436c09aadb9e5854b775c4232c2a5a3 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Thu, 9 Nov 2023 12:50:13 +0100 Subject: [PATCH] Fix stuck cursor in Advanced Scene Importer Display an Arrow mouse cursor, while the mouse is moved within the `SubViewportContainer` of the Advanced Scene Importer. --- editor/import/scene_import_settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/import/scene_import_settings.cpp b/editor/import/scene_import_settings.cpp index d902ad1acc3..322e39e112f 100644 --- a/editor/import/scene_import_settings.cpp +++ b/editor/import/scene_import_settings.cpp @@ -1046,6 +1046,9 @@ void SceneImportSettings::_viewport_input(const Ref &p_input) { (*rot_x) = CLAMP((*rot_x), -Math_PI / 2, Math_PI / 2); _update_camera(); } + if (mm.is_valid() && DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_CURSOR_SHAPE)) { + DisplayServer::get_singleton()->cursor_set_shape(DisplayServer::CursorShape::CURSOR_ARROW); + } Ref mb = p_input; if (mb.is_valid() && mb->get_button_index() == MouseButton::WHEEL_DOWN) { (*zoom) *= 1.1;