From d44e6153d1993acd11cd17ac5f41fd1e00ba2f10 Mon Sep 17 00:00:00 2001 From: Johnny Matthews Date: Fri, 29 Jul 2005 20:07:01 +0000 Subject: [PATCH] Flush Edge selection down to verts in subdivide if you are in Vertex select mode --- source/blender/src/editmesh_tools.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c index 5eaa0343f06..efcb71eb4a0 100644 --- a/source/blender/src/editmesh_tools.c +++ b/source/blender/src/editmesh_tools.c @@ -2268,6 +2268,7 @@ void esubdivideflag(int flag, float rad, int beauty, int numcuts, int seltype) if(eed->f2 & EDGENEW){ eed->f |= flag; EM_select_edge(eed,1); + }else{ eed->f &= !flag; EM_select_edge(eed,0); @@ -2284,6 +2285,14 @@ void esubdivideflag(int flag, float rad, int beauty, int numcuts, int seltype) } } } + if(G.scene->selectmode & SCE_SELECT_VERTEX){ + for(eed = em->edges.first;eed;eed = eed->next){ + if(eed->f & SELECT){ + eed->v1->f |= SELECT; + eed->v2->f |= SELECT; + } + } + } // Free the ghash and call MEM_freeN on all the value entries to return // that memory BLI_ghash_free(gh, NULL, (GHashValFreeFP)MEM_freeN); @@ -4490,6 +4499,7 @@ int EdgeSlide(short immediate, float imperc) // we should have enough info now to slide //persp(PERSP_WIN); //glDrawBuffer(GL_FRONT); + percp = -1; while(draw){ if(perc == percp){ PIL_sleep_ms(10);