[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42552] branches/bmesh/blender/source/ blender/blenkernel/intern/editderivedmesh.c: minor edits to last commit

Campbell Barton ideasman42 at gmail.com
Sat Dec 10 07:06:50 CET 2011


Revision: 42552
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42552
Author:   campbellbarton
Date:     2011-12-10 06:06:36 +0000 (Sat, 10 Dec 2011)
Log Message:
-----------
minor edits to last commit

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/blenkernel/intern/editderivedmesh.c

Modified: branches/bmesh/blender/source/blender/blenkernel/intern/editderivedmesh.c
===================================================================
--- branches/bmesh/blender/source/blender/blenkernel/intern/editderivedmesh.c	2011-12-10 05:38:00 UTC (rev 42551)
+++ branches/bmesh/blender/source/blender/blenkernel/intern/editderivedmesh.c	2011-12-10 06:06:36 UTC (rev 42552)
@@ -619,6 +619,7 @@
 {
 	EditDerivedBMesh *bmdm= (EditDerivedBMesh*) dm;
 	BMFace *efa;
+	struct BMLoop *(*looptris)[3]= bmdm->tc->looptris;
 	const int tottri= bmdm->tc->tottri;
 	const int lasttri= tottri - 1; /* compare agasint this a lot */
 	int i, draw, flush;
@@ -642,7 +643,7 @@
 		BM_ElemIndex_Ensure(bmdm->tc->bm, BM_VERT | BM_FACE);
 
 		for (i=0; i < tottri; i++) {
-			BMLoop **l = bmdm->tc->looptris[i];
+			BMLoop **l = looptris[i];
 			int drawSmooth;
 
 			efa = l[0]->f;
@@ -699,7 +700,7 @@
 
 				flush= (draw==2);
 				if (!skip_normals && !flush && (i != lasttri))
-					flush|= efa->mat_nr != bmdm->tc->looptris[i + 1][0]->f->mat_nr; /* TODO, make this neater */
+					flush|= efa->mat_nr != looptris[i + 1][0]->f->mat_nr; /* TODO, make this neater */
 
 				if (flush) {
 					glEnd();
@@ -713,8 +714,8 @@
 	else {
 		BM_ElemIndex_Ensure(bmdm->tc->bm, BM_FACE);
 
-		for (i=0; i<bmdm->tc->tottri; i++) {
-			BMLoop **l = bmdm->tc->looptris[i];
+		for (i=0; i < tottri; i++) {
+			BMLoop **l = looptris[i];
 			int drawSmooth;
 
 			efa = l[0]->f;
@@ -771,7 +772,7 @@
 
 				flush= (draw==2);
 				if (!skip_normals && !flush && (i != lasttri)) {
-					flush|= efa->mat_nr != bmdm->tc->looptris[i + 1][0]->f->mat_nr; /* TODO, make this neater */
+					flush|= efa->mat_nr != looptris[i + 1][0]->f->mat_nr; /* TODO, make this neater */
 				}
 
 				if (flush) {




More information about the Bf-blender-cvs mailing list