From 12c9858d06461ddecec14392d43d66543e758499 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 7 May 2016 06:19:47 +0000 Subject: [PATCH] Only flip extrusion normal when transitioning between union and difference. After commit a8465cbc8, extrusion normal would be adjusted when switching between union and assembly groups, if ever implemented. --- src/textscreens.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/textscreens.cpp b/src/textscreens.cpp index 2cb6ad7..01b0286 100644 --- a/src/textscreens.cpp +++ b/src/textscreens.cpp @@ -195,7 +195,9 @@ void TextWindow::ScreenChangeGroupOption(int link, uint32_t v) { // When an extrude group is first created, it's positioned for a union // extrusion. If no constraints were added, flip it when we switch between // union and difference modes to avoid manual work doing the smae. - if(g->meshCombine != v && g->GetNumConstraints() == 0) { + if(g->meshCombine != v && g->GetNumConstraints() == 0 && + (v == Group::COMBINE_AS_DIFFERENCE || + g->meshCombine == Group::COMBINE_AS_DIFFERENCE)) { g->ExtrusionForceVectorTo(g->ExtrusionGetVector().Negated()); } g->meshCombine = v;