WM: update comment about window redraw for thumbnails

This commit is contained in:
Campbell Barton 2022-08-17 15:56:00 +10:00
parent e52fd904e8
commit b1d3097fa9
1 changed files with 5 additions and 3 deletions

View File

@ -1768,9 +1768,11 @@ static bool wm_file_write(bContext *C,
/* Enforce full override check/generation on file save. */
BKE_lib_override_library_main_operations_create(bmain, true);
/* NOTE: Ideally we would call `WM_redraw_windows` here to remove any open menus. But we
* can crash if saving from a script, see T92704 & T97627. Just checking `!G.background
* && BLI_thread_is_main()` is not sufficient to fix this. */
/* NOTE: Ideally we would call `WM_redraw_windows` here to remove any open menus.
* But we can crash if saving from a script, see T92704 & T97627.
* Just checking `!G.background && BLI_thread_is_main()` is not sufficient to fix this.
* Additionally some some EGL configurations don't support reading the front-buffer
* immediately after drawing, see: T98462. In that case off-screen drawing is necessary. */
/* don't forget not to return without! */
WM_cursor_wait(true);