From fef8b38acb866f5dbd1adc9e47d86670920083de Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Sun, 1 Oct 2023 17:44:53 +0200 Subject: [PATCH] UI: Less Cursor Changes While Loading Files Less changes of mouse cursor while loading blend files. And no changes to it while reading the homefile. Pull Request: https://projects.blender.org/blender/blender/pulls/113123 --- source/blender/windowmanager/intern/wm_files.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source/blender/windowmanager/intern/wm_files.cc b/source/blender/windowmanager/intern/wm_files.cc index d7714a206c8..23ba9a91e80 100644 --- a/source/blender/windowmanager/intern/wm_files.cc +++ b/source/blender/windowmanager/intern/wm_files.cc @@ -692,8 +692,6 @@ static void wm_file_read_post(bContext *C, CTX_wm_window_set(C, static_cast(wm->windows.first)); } - WM_cursor_wait(true); - #ifdef WITH_PYTHON if (is_startup_file) { /* On startup (by default), Python won't have been initialized. @@ -820,8 +818,6 @@ static void wm_file_read_post(bContext *C, WM_toolsystem_init(C); } } - - WM_cursor_wait(false); } static void wm_read_callback_pre_wrapper(bContext *C, const char *filepath) @@ -1071,7 +1067,6 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports) bf_reports.duration.whole = PIL_check_seconds_timer() - bf_reports.duration.whole; file_read_reports_finalize(&bf_reports); - WM_cursor_wait(true); success = true; } } @@ -1176,8 +1171,6 @@ void wm_homefile_read_ex(bContext *C, char filepath_startup[FILE_MAX]; char filepath_userdef[FILE_MAX]; - WM_cursor_wait(true); - /* When 'app_template' is set: * '{BLENDER_USER_CONFIG}/{app_template}' */ char app_template_system[FILE_MAX]; @@ -1495,8 +1488,6 @@ void wm_homefile_read_ex(bContext *C, CTX_wm_window_set(C, nullptr); } } - - WM_cursor_wait(false); } void wm_homefile_read(bContext *C,