diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2011-09-20 09:45:54 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2011-09-20 09:45:54 +0400 |
commit | 2b1513dbdad785c0f95acbe195215706a2ee873b (patch) | |
tree | 1c05e0a4826796340268b9ed95ecfca5a89828e2 | |
parent | 79c19590e98c28d313e5cbf47453a582b4012dd6 (diff) |
texface - quick speedup
I doubt this makes any difference but still, good practises are always good.
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index aeab4b177c9..bd5fcae36b1 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -1931,12 +1931,13 @@ int do_version_tface(Main *main, int fileload) if (!cdl) continue; /* loop over all the faces and stop at the ones that use the material*/ - for(a=0, mf=me->mface; a<me->totface; a++, mf++) { - /* texface data for this face */ - tf = ((MTFace*)cdl->data) + a; - - if(me->mat[(int)mf->mat_nr] != ma) continue; - else tf->mode |= TF_CONVERTED; + for (a=0, mf=me->mface; a<me->totface; a++, mf++) { + if (me->mat[(int)mf->mat_nr] != ma) continue; + else { + /* texface data for this face */ + tf = ((MTFace*)cdl->data) + a; + tf->mode |= TF_CONVERTED; + } } } } |