Fix all library always tagging catalogs as changed
This commit is contained in:
@@ -299,7 +299,7 @@ class AssetCatalogCollection {
|
||||
std::unique_ptr<AssetCatalogCollection> deep_copy() const;
|
||||
/**
|
||||
* Copy the catalogs from \a other and append them to this collection. Copies no other data
|
||||
* otherwise (but marks as having unsaved changes).
|
||||
* otherwise.
|
||||
*/
|
||||
void add_catalogs_from_existing(const AssetCatalogCollection &other);
|
||||
|
||||
|
@@ -689,7 +689,6 @@ static void copy_catalog_map_into_existing(const OwningAssetCatalogMap &source,
|
||||
|
||||
void AssetCatalogCollection::add_catalogs_from_existing(const AssetCatalogCollection &other)
|
||||
{
|
||||
has_unsaved_changes_ = true;
|
||||
copy_catalog_map_into_existing(other.catalogs_, catalogs_);
|
||||
}
|
||||
|
||||
|
@@ -158,7 +158,7 @@ AssetLibrary *AssetLibraryService::get_asset_library_all(const Main *bmain)
|
||||
all_library.catalog_service = std::make_unique<AssetCatalogService>(
|
||||
AssetCatalogService::read_only_tag());
|
||||
|
||||
/* (Re-)load catalogs on refresh. */
|
||||
/* (Re-)load catalogs on refresh, and merge them into the all library. */
|
||||
AssetLibrary::foreach_loaded(
|
||||
[&](AssetLibrary &nested) {
|
||||
/* On first load the catalogs were read just above, no need to reload. */
|
||||
|
Reference in New Issue
Block a user