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:
authorCampbell Barton <ideasman42@gmail.com>2012-03-24 10:18:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 10:18:31 +0400
commit69e6894b15271884623ea6f56ead06db83acbe99 (patch)
treeb68200606afaca06cf7552f6b12fc20ebd30d487 /source/blender/blenkernel/intern/material.c
parent7b99ae0ad3017e373be2a344e30d190b70ca66b4 (diff)
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c20
1 files changed, 10 insertions, 10 deletions
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; a<ob->totcol; 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; a<me->totcol; 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; a<cu->totcol; 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; a<mb->totcol; 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; a<ob->totcol; 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; a<me->totcol; 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; a<cu->totcol; 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; a<mb->totcol; 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; i<totcol; i++)
@@ -1144,7 +1144,7 @@ int object_remove_material_slot(Object *ob)
actcol= ob->actcol;
obt= G.main->object.first;
- while(obt) {
+ while (obt) {
if (obt->data==ob->data) {