Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r--source/blender/blenkernel/intern/scene.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c
index c4eefb16348..791d572d385 100644
--- a/source/blender/blenkernel/intern/scene.c
+++ b/source/blender/blenkernel/intern/scene.c
@@ -1080,23 +1080,23 @@ float get_render_aosss_error(RenderData *r, float error)
/* helper function for the SETLOOPER macro */
Base *_setlooper_base_step(Scene **sce_iter, Base *base)
{
- if(base && base->next) {
- /* common case, step to the next */
- return base->next;
- }
+ if(base && base->next) {
+ /* common case, step to the next */
+ return base->next;
+ }
else if(base==NULL && (*sce_iter)->base.first) {
- /* first time looping, return the scenes first base */
+ /* first time looping, return the scenes first base */
return (Base *)(*sce_iter)->base.first;
- }
- else {
- /* reached the end, get the next base in the set */
+ }
+ else {
+ /* reached the end, get the next base in the set */
while((*sce_iter= (*sce_iter)->set)) {
base= (Base *)(*sce_iter)->base.first;
- if(base) {
- return base;
- }
- }
- }
+ if(base) {
+ return base;
+ }
+ }
+ }
- return NULL;
+ return NULL;
}