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:
authorDalai Felinto <dfelinto@gmail.com>2011-09-20 09:45:54 +0400
committerDalai Felinto <dfelinto@gmail.com>2011-09-20 09:45:54 +0400
commit2b1513dbdad785c0f95acbe195215706a2ee873b (patch)
tree1c05e0a4826796340268b9ed95ecfca5a89828e2 /source/blender
parent79c19590e98c28d313e5cbf47453a582b4012dd6 (diff)
texface - quick speedup
I doubt this makes any difference but still, good practises are always good.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/material.c13
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;
+ }
}
}
}