WIP: Brush assets project #106303
|
@ -22,6 +22,7 @@
|
|||
#include "IMB_moviecache.hh"
|
||||
|
||||
#include "BKE_addon.h"
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_blender.hh" /* own include */
|
||||
#include "BKE_blender_user_menu.hh" /* own include */
|
||||
#include "BKE_blender_version.h" /* own include */
|
||||
|
@ -60,6 +61,11 @@ void BKE_blender_free()
|
|||
|
||||
BKE_blender_globals_clear();
|
||||
|
||||
/* Free separate data-bases after #BKE_blender_globals_clear in case any data-blocks in the
|
||||
* global main use pointers to asset main data-blocks when they're freed. That generally
|
||||
* shouldn't happen but it's better to be safe. */
|
||||
BKE_asset_weak_reference_main_free();
|
||||
|
||||
if (G.log.file != nullptr) {
|
||||
fclose(static_cast<FILE *>(G.log.file));
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "BLO_undofile.hh"
|
||||
#include "BLO_writefile.hh"
|
||||
|
||||
#include "BKE_asset.hh"
|
||||
#include "BKE_blender.hh"
|
||||
#include "BKE_blendfile.hh"
|
||||
#include "BKE_brush.hh"
|
||||
|
@ -579,7 +578,6 @@ void WM_exit_ex(bContext *C, const bool do_python_exit, const bool do_user_exit_
|
|||
ED_preview_restart_queue_free();
|
||||
ed::asset::list::storage_exit();
|
||||
|
||||
BKE_asset_weak_reference_main_free();
|
||||
BKE_tracking_clipboard_free();
|
||||
BKE_mask_clipboard_free();
|
||||
BKE_vfont_clipboard_free();
|
||||
|
|
Loading…
Reference in New Issue