[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44155] branches/bmesh/blender/source/ blender/bmesh: Should have been applied last commit.

Campbell Barton ideasman42 at gmail.com
Thu Feb 16 16:53:20 CET 2012


Revision: 44155
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44155
Author:   campbellbarton
Date:     2012-02-16 15:53:13 +0000 (Thu, 16 Feb 2012)
Log Message:
-----------
Should have been applied last commit.
Ommit BMFace totbounds variable when holes are disabled, saves another 4 bytes.

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/bmesh/bmesh_class.h
    branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c

Modified: branches/bmesh/blender/source/blender/bmesh/bmesh_class.h
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/bmesh_class.h	2012-02-16 15:38:16 UTC (rev 44154)
+++ branches/bmesh/blender/source/blender/bmesh/bmesh_class.h	2012-02-16 15:53:13 UTC (rev 44155)
@@ -111,8 +111,8 @@
 typedef struct BMFace {
 	BMHeader head;
 	int len; /*includes all boundary loops*/
+#ifdef USE_BMESH_HOLES
 	int totbounds; /*total boundaries, is one plus the number of holes in the face*/
-#ifdef USE_BMESH_HOLES
 	ListBase loops;
 #else
 	BMLoop *l_first;

Modified: branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c	2012-02-16 15:38:16 UTC (rev 44154)
+++ branches/bmesh/blender/source/blender/bmesh/intern/bmesh_newcore.c	2012-02-16 15:53:13 UTC (rev 44155)
@@ -315,7 +315,10 @@
 	lastl->next = startl;
 	
 	f->len = len;
+
+#ifdef USE_BMESH_HOLES
 	f->totbounds = 0;
+#endif
 	
 	BM_CHECK_ELEMENT(bm, f);
 
@@ -1072,7 +1075,10 @@
 	CustomData_bmesh_set_default(&bm->pdata, &f->head.data);
 
 	f->len = 0;
+
+#ifdef USE_BMESH_HOLES
 	f->totbounds = 1;
+#endif
 
 	return (BMFace *) f;
 }




More information about the Bf-blender-cvs mailing list