Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Show First 20 Lines • Show All 1,777 Lines • ▼ Show 20 Lines | static bool wm_file_write(bContext *C, | ||||
| ED_assets_pre_save(bmain); | ED_assets_pre_save(bmain); | ||||
| /* Enforce full override check/generation on file save. */ | /* Enforce full override check/generation on file save. */ | ||||
| BKE_lib_override_library_main_operations_create(bmain, true); | BKE_lib_override_library_main_operations_create(bmain, true); | ||||
| /* NOTE: Ideally we would call `WM_redraw_windows` here to remove any open menus. | /* 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. | * 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. | * 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 | * Additionally some EGL configurations don't support reading the front-buffer | ||||
| * immediately after drawing, see: T98462. In that case off-screen drawing is necessary. */ | * immediately after drawing, see: T98462. In that case off-screen drawing is necessary. */ | ||||
| /* don't forget not to return without! */ | /* don't forget not to return without! */ | ||||
| WM_cursor_wait(true); | WM_cursor_wait(true); | ||||
| if (U.file_preview_type != USER_FILE_PREVIEW_NONE) { | if (U.file_preview_type != USER_FILE_PREVIEW_NONE) { | ||||
| /* Blend file thumbnail. | /* Blend file thumbnail. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 2,040 Lines • Show Last 20 Lines | |||||