[Bf-blender-cvs] [c4304b3e0f4] lanpr-under-gp: Lineart: Remove cursor progress call to avoid BadCursor error.

YimingWu noreply at git.blender.org
Thu Oct 29 05:33:27 CET 2020


Commit: c4304b3e0f4bc2d1aa1b1dab7c92dd778e6fd0b5
Author: YimingWu
Date:   Thu Oct 29 12:33:15 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBc4304b3e0f4bc2d1aa1b1dab7c92dd778e6fd0b5

Lineart: Remove cursor progress call to avoid BadCursor error.

===================================================================

M	source/blender/editors/lineart/lineart_cpu.c

===================================================================

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index 75c731c7a3c..41373a0f6c9 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -4237,15 +4237,15 @@ void ED_lineart_post_frame_update_external(bContext *C,
 
 void ED_lineart_update_render_progress(int nr, const char *info)
 {
-  /* WM_cursor_set() should not be called in a background thread, need an alternative way of
-   * showing the progress. */
+  /* WM_cursor_set() and WM_cursor_time() should not be called in a background thread, need an
+   * alternative way of showing the progress. */
   if (lineart_share.main_window) {
     if (nr == 100) {
       /* just setting WM_CURSOR_DEFAULT doesn't seem to work on linux. */
       /* WM_cursor_set(lineart_share.main_window, WM_CURSOR_NW_ARROW); */
     }
     else {
-      WM_cursor_time(lineart_share.main_window, nr);
+      /* WM_cursor_time(lineart_share.main_window, nr); */
       WM_progress_set(lineart_share.main_window, (float)nr / 100);
     }
   }



More information about the Bf-blender-cvs mailing list