Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-10-12 15:42:27 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-10-12 15:42:36 +0300
commitf1d97a308d4a588694cdd41db57197576f1432c0 (patch)
tree15e89d91bf02cba3763606b52c29b521a9d54f73 /source/blender/blenkernel/intern/asset_catalog.cc
parent3a03d6c8519e3b12d5f3a359e3b8eccfe01ec6af (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.cc2
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));