Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-26 19:05:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-26 19:05:19 +0400
commitdfc406fc2c5b4e547330c5383cf6c555e5866511 (patch)
tree22813b3a2859c2cdab228b889f650e963ca24107 /source/blender/editors/mesh/editmesh_loopcut.c
parent722175e4b95ca1b5df199012789d5edefbc69863 (diff)
fix/feature [#35085] Loop cut slide
Loop cut slide now works with multicut. issue is that since edge slide now supports more configurations, cases where loop-cut-slide silently failed before, now slide (albeit in an awkward way at times). Fix this my adjusting the selection of after loopcut so edge slide can properly operate on it.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_loopcut.c')
-rw-r--r--source/blender/editors/mesh/editmesh_loopcut.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c
index 626f372c661..74a1a527790 100644
--- a/source/blender/editors/mesh/editmesh_loopcut.c
+++ b/source/blender/editors/mesh/editmesh_loopcut.c
@@ -299,8 +299,12 @@ static void ringsel_finish(bContext *C, wmOperator *op)
/* tessface is already re-recalculated */
EDBM_update_generic(em, false, true);
+ /* we cant slide multiple edges in vertex select mode */
+ if ((cuts > 1) && (em->selectmode & SCE_SELECT_VERTEX)) {
+ /* dont flush vertex selection when we have multiple cuts, otherwise we can't slide */
+ }
/* force edge slide to edge select mode in in face select mode */
- if (EDBM_selectmode_disable(lcd->vc.scene, em, SCE_SELECT_FACE, SCE_SELECT_EDGE)) {
+ else if (EDBM_selectmode_disable(lcd->vc.scene, em, SCE_SELECT_FACE, SCE_SELECT_EDGE)) {
/* pass, the change will flush selection */
}
else {