Bugfix: extrudes failed when called a 2nd time, missing statistics
update. Reported by Sanne in irc, thanks!
This commit is contained in:
Ton Roosendaal 2009-07-19 17:14:26 +00:00
parent 9e047d5acc
commit 20f1fb6a7f

@ -627,6 +627,9 @@ void extrude_mesh(Scene *scene, Object *obedit, EditMesh *em, wmOperator *op)
float nor[3]= {0.0, 0.0, 0.0};
short nr, transmode= 0;
/* extrude depends on totvertsel etc */
EM_stats_update(em);
if(em->selectmode & SCE_SELECT_VERTEX) {
if(em->totvertsel==0) nr= 0;
else if(em->totvertsel==1) nr= 4;