[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45716] trunk/blender/source/blender/bmesh /intern/bmesh_core.c: bmesh api: adjust bmesh_vert_separate() not to set the loops index values ( need them to be left untouched for other tools).
Campbell Barton
ideasman42 at gmail.com
Tue Apr 17 17:44:19 CEST 2012
Revision: 45716
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45716
Author: campbellbarton
Date: 2012-04-17 15:44:19 +0000 (Tue, 17 Apr 2012)
Log Message:
-----------
bmesh api: adjust bmesh_vert_separate() not to set the loops index values (need them to be left untouched for other tools).
Modified Paths:
--------------
trunk/blender/source/blender/bmesh/intern/bmesh_core.c
Modified: trunk/blender/source/blender/bmesh/intern/bmesh_core.c
===================================================================
--- trunk/blender/source/blender/bmesh/intern/bmesh_core.c 2012-04-17 15:40:04 UTC (rev 45715)
+++ trunk/blender/source/blender/bmesh/intern/bmesh_core.c 2012-04-17 15:44:19 UTC (rev 45716)
@@ -1864,13 +1864,14 @@
* if you are tidying up code - campbell */
BLI_array_empty(stack);
BM_ITER(l, &liter, bm, BM_LOOPS_OF_VERT, v) {
- if ((l->v == v) && (i = GET_INT_FROM_POINTER(BLI_ghash_lookup(visithash, l->e)))) {
- BM_elem_index_set(l, i); /* would be nice to assign vert here but cant, so assign the vert index */
+ if (l->v == v) {
BLI_array_append(stack, (BMEdge *)l);
}
}
while ((l = (BMLoop *)(BLI_array_pop(stack)))) {
- l->v = verts[BM_elem_index_get(l)];
+ if ((i = GET_INT_FROM_POINTER(BLI_ghash_lookup(visithash, l->e)))) {
+ l->v = verts[i];
+ }
}
#endif
More information about the Bf-blender-cvs
mailing list