Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/layer.c
| Show First 20 Lines • Show All 1,494 Lines • ▼ Show 20 Lines | for (Base *base = view_layer->object_bases.first; base; base = base->next) { | ||||
| } | } | ||||
| /* If base is not selectabled, clear select. */ | /* If base is not selectabled, clear select. */ | ||||
| if ((base->flag & BASE_SELECTABLE) == 0) { | if ((base->flag & BASE_SELECTABLE) == 0) { | ||||
| base->flag &= ~BASE_SELECTED; | base->flag &= ~BASE_SELECTED; | ||||
| } | } | ||||
| view_layer->object_bases_array[base_index++] = base; | view_layer->object_bases_array[base_index++] = base; | ||||
| } | } | ||||
| /* Flush back base flag to the original view layer for editing. */ | /* Flush back base flag to the original view layer for editing. */ | ||||
| if (view_layer == DEG_get_evaluated_view_layer(depsgraph)) { | if (DEG_is_active(depsgraph) && (view_layer == DEG_get_evaluated_view_layer(depsgraph))) { | ||||
| ViewLayer *view_layer_orig = DEG_get_input_view_layer(depsgraph); | ViewLayer *view_layer_orig = DEG_get_input_view_layer(depsgraph); | ||||
| Base *base_orig = view_layer_orig->object_bases.first; | Base *base_orig = view_layer_orig->object_bases.first; | ||||
| const Base *base_eval = view_layer->object_bases.first; | const Base *base_eval = view_layer->object_bases.first; | ||||
| while (base_orig != NULL) { | while (base_orig != NULL) { | ||||
| if (base_orig->flag & base_enabled_flag) { | if (base_orig->flag & base_enabled_flag) { | ||||
| base_orig->flag = base_eval->flag; | base_orig->flag = base_eval->flag; | ||||
| base_eval = base_eval->next; | base_eval = base_eval->next; | ||||
| } | } | ||||
| Show All 15 Lines | |||||