Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 1,637 Lines • ▼ Show 20 Lines | else | ||||
| return (int)(r->simplify_particles * num); | return (int)(r->simplify_particles * num); | ||||
| } | } | ||||
| else { | else { | ||||
| return num; | return num; | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Helper function for the SETLOOPER and SETLOOPER_VIEW_LAYER macros | * Helper function for the SETLOOPER and SETLOOPER_VIEW_LAYER macros | ||||
| * | * | ||||
| * It iterates over the bases of the active layer and then the bases | * It iterates over the bases of the active layer and then the bases | ||||
| * of the active layer of the background (set) scenes recursively. | * of the active layer of the background (set) scenes recursively. | ||||
| */ | */ | ||||
| Base *_setlooper_base_step(Scene **sce_iter, ViewLayer *view_layer, Base *base) | Base *_setlooper_base_step(Scene **sce_iter, ViewLayer *view_layer, Base *base) | ||||
| { | { | ||||
| if (base && base->next) { | if (base && base->next) { | ||||
| /* Common case, step to the next. */ | /* Common case, step to the next. */ | ||||
| return base->next; | return base->next; | ||||
| } | } | ||||
| else if ((base == NULL) && (view_layer != NULL)) { | else if ((base == NULL) && (view_layer != NULL)) { | ||||
| /* First time looping, return the scenes first base. */ | /* First time looping, return the scenes first base. */ | ||||
| ▲ Show 20 Lines • Show All 696 Lines • Show Last 20 Lines | |||||