diff options
-rw-r--r-- | source/blender/editors/asset/intern/asset_catalog.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/asset/intern/asset_catalog.cc b/source/blender/editors/asset/intern/asset_catalog.cc index f8b33e76447..98f017db20c 100644 --- a/source/blender/editors/asset/intern/asset_catalog.cc +++ b/source/blender/editors/asset/intern/asset_catalog.cc @@ -121,6 +121,9 @@ void ED_asset_catalogs_save_from_main_path(::AssetLibrary *library, const Main * return; } + /* Since writing to disk also means loading any on-disk changes, it may be a good idea to store + * an undo step. */ + catalog_service->undo_push(); catalog_service->write_to_disk(bmain->name); } |