[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40381] trunk/blender/source/blender/ blenkernel/intern/material.c: texface - quick speedup
Dalai Felinto
dfelinto at gmail.com
Tue Sep 20 07:45:55 CEST 2011
Revision: 40381
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40381
Author: dfelinto
Date: 2011-09-20 05:45:54 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
texface - quick speedup
I doubt this makes any difference but still, good practises are always good.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/material.c
Modified: trunk/blender/source/blender/blenkernel/intern/material.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/material.c 2011-09-20 04:54:13 UTC (rev 40380)
+++ trunk/blender/source/blender/blenkernel/intern/material.c 2011-09-20 05:45:54 UTC (rev 40381)
@@ -1931,12 +1931,13 @@
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;
+ }
}
}
}
More information about the Bf-blender-cvs
mailing list