[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41455] branches/bmesh/blender/source/ blender/editors/mesh/bmesh_tools.c: ctrl+click mesh extrude wasnt re-tesselating the mesh

Campbell Barton ideasman42 at gmail.com
Wed Nov 2 00:38:34 CET 2011


Revision: 41455
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41455
Author:   campbellbarton
Date:     2011-11-01 23:38:34 +0000 (Tue, 01 Nov 2011)
Log Message:
-----------
ctrl+click mesh extrude wasnt re-tesselating the mesh

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c

Modified: branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c
===================================================================
--- branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c	2011-11-01 23:24:51 UTC (rev 41454)
+++ branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c	2011-11-01 23:38:34 UTC (rev 41455)
@@ -844,6 +844,12 @@
 	if(use_proj)
 		EMBM_project_snap_verts(C, vc.ar, vc.obedit, vc.em);
 
+	/*This normally happens when pushing undo but modal operators
+	  like this one don't push undo data until after modal mode is
+	  done.*/
+	EDBM_RecalcNormals(vc.em);
+	BMEdit_RecalcTesselation(vc.em);
+
 	WM_event_add_notifier(C, NC_GEOM|ND_DATA, vc.obedit->data); 
 	DAG_id_tag_update(vc.obedit->data, OB_RECALC_DATA);
 	




More information about the Bf-blender-cvs mailing list