[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49042] branches/soc-2012-bratwurst/source /blender: UV transform correction
Antony Riakiotakis
kalast at gmail.com
Wed Jul 18 22:01:06 CEST 2012
Revision: 49042
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49042
Author: psy-fi
Date: 2012-07-18 20:01:06 +0000 (Wed, 18 Jul 2012)
Log Message:
-----------
UV transform correction
========================
* Fix crash when moving single vertices or vertices/faces not attached
to faces.
Modified Paths:
--------------
branches/soc-2012-bratwurst/source/blender/bmesh/intern/bmesh_queries.c
branches/soc-2012-bratwurst/source/blender/editors/transform/transform_generics.c
Modified: branches/soc-2012-bratwurst/source/blender/bmesh/intern/bmesh_queries.c
===================================================================
--- branches/soc-2012-bratwurst/source/blender/bmesh/intern/bmesh_queries.c 2012-07-18 20:00:59 UTC (rev 49041)
+++ branches/soc-2012-bratwurst/source/blender/bmesh/intern/bmesh_queries.c 2012-07-18 20:01:06 UTC (rev 49042)
@@ -201,6 +201,10 @@
return NULL;
e = bmesh_disk_faceedge_find_first(v->e, v);
+
+ if (!e)
+ return NULL;
+
return bmesh_radial_faceloop_find_first(e->l, v);
}
Modified: branches/soc-2012-bratwurst/source/blender/editors/transform/transform_generics.c
===================================================================
--- branches/soc-2012-bratwurst/source/blender/editors/transform/transform_generics.c 2012-07-18 20:00:59 UTC (rev 49041)
+++ branches/soc-2012-bratwurst/source/blender/editors/transform/transform_generics.c 2012-07-18 20:01:06 UTC (rev 49042)
@@ -1952,6 +1952,9 @@
int index;
BMVert *v = td[i].eve;
+ if (!BM_vert_find_first_loop(v))
+ continue;
+
boundary_loops[0] = boundary_loops[1] = boundary_loop_init;
index = BM_elem_index_get(v);
More information about the Bf-blender-cvs
mailing list