Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/collection.c
| Show First 20 Lines • Show All 1,299 Lines • ▼ Show 20 Lines | if (layer_collection) { | ||||
| */ | */ | ||||
| layer_collection->flag = POINTER_AS_INT(BLI_ghashIterator_getValue(&gh_iter)) | | layer_collection->flag = POINTER_AS_INT(BLI_ghashIterator_getValue(&gh_iter)) | | ||||
| (layer_collection->flag & LAYER_COLLECTION_EXCLUDE); | (layer_collection->flag & LAYER_COLLECTION_EXCLUDE); | ||||
| } | } | ||||
| } | } | ||||
| BLI_ghash_free(view_layer_hash, NULL, NULL); | BLI_ghash_free(view_layer_hash, NULL, NULL); | ||||
| /* We need to sync it again to pass the correct flags to the collections objects. */ | |||||
| BKE_main_collection_sync(bmain); | |||||
| return true; | return true; | ||||
| } | } | ||||
| /**************************** Iterators ******************************/ | /**************************** Iterators ******************************/ | ||||
| /* scene collection iteractor */ | /* scene collection iteractor */ | ||||
| typedef struct CollectionsIteratorData { | typedef struct CollectionsIteratorData { | ||||
| ▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines | |||||