Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_layer.c
| Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | |||||
| static void rna_LayerCollection_hide_viewport_set(PointerRNA *ptr, bool value) | static void rna_LayerCollection_hide_viewport_set(PointerRNA *ptr, bool value) | ||||
| { | { | ||||
| rna_LayerCollection_flag_set(ptr, value, LAYER_COLLECTION_HIDE); | rna_LayerCollection_flag_set(ptr, value, LAYER_COLLECTION_HIDE); | ||||
| } | } | ||||
| static void rna_LayerCollection_exclude_update_recursive(ListBase *lb, const bool exclude) | static void rna_LayerCollection_exclude_update_recursive(ListBase *lb, const bool exclude) | ||||
| { | { | ||||
| for (LayerCollection *lc = lb->first; lc; lc = lc->next) { | LISTBASE_FOREACH (LayerCollection *, lc, lb) { | ||||
| if (exclude) { | if (exclude) { | ||||
| lc->flag |= LAYER_COLLECTION_EXCLUDE; | lc->flag |= LAYER_COLLECTION_EXCLUDE; | ||||
| } | } | ||||
| else { | else { | ||||
| lc->flag &= ~LAYER_COLLECTION_EXCLUDE; | lc->flag &= ~LAYER_COLLECTION_EXCLUDE; | ||||
| } | } | ||||
| rna_LayerCollection_exclude_update_recursive(&lc->layer_collections, exclude); | rna_LayerCollection_exclude_update_recursive(&lc->layer_collections, exclude); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||