diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-12 15:42:27 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-12 15:42:36 +0300 |
commit | f1d97a308d4a588694cdd41db57197576f1432c0 (patch) | |
tree | 15e89d91bf02cba3763606b52c29b521a9d54f73 /source/blender/blenkernel/intern/asset_catalog.cc | |
parent | 3a03d6c8519e3b12d5f3a359e3b8eccfe01ec6af (diff) |
Cleanup: asset catalogs, rename store_undo_snapshot to undo_push
Rename `bke::AssetCatalogService::store_undo_snapshot` to `undo_push`.
This makes the function named the same way as the global Blender "undo
push" function.
No functional changes.
Diffstat (limited to 'source/blender/blenkernel/intern/asset_catalog.cc')
-rw-r--r-- | source/blender/blenkernel/intern/asset_catalog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/asset_catalog.cc b/source/blender/blenkernel/intern/asset_catalog.cc index 1b8ab6f7196..2d4956e7e25 100644 --- a/source/blender/blenkernel/intern/asset_catalog.cc +++ b/source/blender/blenkernel/intern/asset_catalog.cc @@ -495,7 +495,7 @@ void AssetCatalogService::redo() catalog_collection_ = std::move(redo_snapshots_.pop_last()); } -void AssetCatalogService::store_undo_snapshot() +void AssetCatalogService::undo_push() { std::unique_ptr<AssetCatalogCollection> snapshot = catalog_collection_->deep_copy(); undo_snapshots_.append(std::move(snapshot)); |