From 69e6894b15271884623ea6f56ead06db83acbe99 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 24 Mar 2012 06:18:31 +0000 Subject: style cleanup: follow style guide for formatting of if/for/while loops, and else if's --- source/blender/blenkernel/intern/material.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source/blender/blenkernel/intern/material.c') diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 6f47ed427d3..dd25092f7dd 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -307,7 +307,7 @@ void make_local_material(Material *ma) * lib or local */ /* test objects */ ob= bmain->object.first; - while(ob) { + while (ob) { if (ob->mat) { for (a=0; atotcol; a++) { if (ob->mat[a]==ma) { @@ -320,7 +320,7 @@ void make_local_material(Material *ma) } /* test meshes */ me= bmain->mesh.first; - while(me) { + while (me) { if (me->mat) { for (a=0; atotcol; a++) { if (me->mat[a]==ma) { @@ -333,7 +333,7 @@ void make_local_material(Material *ma) } /* test curves */ cu= bmain->curve.first; - while(cu) { + while (cu) { if (cu->mat) { for (a=0; atotcol; a++) { if (cu->mat[a]==ma) { @@ -346,7 +346,7 @@ void make_local_material(Material *ma) } /* test mballs */ mb= bmain->mball.first; - while(mb) { + while (mb) { if (mb->mat) { for (a=0; atotcol; a++) { if (mb->mat[a]==ma) { @@ -374,7 +374,7 @@ void make_local_material(Material *ma) /* do objects */ ob= bmain->object.first; - while(ob) { + while (ob) { if (ob->mat) { for (a=0; atotcol; a++) { if (ob->mat[a]==ma) { @@ -390,7 +390,7 @@ void make_local_material(Material *ma) } /* do meshes */ me= bmain->mesh.first; - while(me) { + while (me) { if (me->mat) { for (a=0; atotcol; a++) { if (me->mat[a]==ma) { @@ -406,7 +406,7 @@ void make_local_material(Material *ma) } /* do curves */ cu= bmain->curve.first; - while(cu) { + while (cu) { if (cu->mat) { for (a=0; atotcol; a++) { if (cu->mat[a]==ma) { @@ -422,7 +422,7 @@ void make_local_material(Material *ma) } /* do mballs */ mb= bmain->mball.first; - while(mb) { + while (mb) { if (mb->mat) { for (a=0; atotcol; a++) { if (mb->mat[a]==ma) { @@ -840,7 +840,7 @@ void assign_matarar(struct Object *ob, struct Material ***matar, short totcol) int actcol_orig= ob->actcol; short i; - while(object_remove_material_slot(ob)) {}; + while (object_remove_material_slot(ob)) {}; /* now we have the right number of slots */ for (i=0; iactcol; obt= G.main->object.first; - while(obt) { + while (obt) { if (obt->data==ob->data) { -- cgit v1.2.3