Fix a crash changing g->meshCombine when g->type!=EXTRUDE.
This commit is contained in:
parent
1480f890bd
commit
85b4b25278
@ -84,6 +84,13 @@ Bugs fixed:
|
||||
as a source group also gets forced to triangle mesh.
|
||||
* Paste Transformed with a negative scale does not invert arcs.
|
||||
|
||||
2.x
|
||||
---
|
||||
|
||||
Bug fixes:
|
||||
* Do not crash when changing an unconstrained lathe group between
|
||||
union and difference modes.
|
||||
|
||||
2.3
|
||||
---
|
||||
|
||||
|
@ -188,6 +188,7 @@ void TextWindow::ScreenChangeGroupOption(int link, uint32_t v) {
|
||||
case 'K': g->skipFirst = false; break;
|
||||
|
||||
case 'c':
|
||||
if(g->type == Group::Type::EXTRUDE) {
|
||||
// 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.
|
||||
@ -196,6 +197,7 @@ void TextWindow::ScreenChangeGroupOption(int link, uint32_t v) {
|
||||
g->meshCombine == Group::CombineAs::DIFFERENCE)) {
|
||||
g->ExtrusionForceVectorTo(g->ExtrusionGetVector().Negated());
|
||||
}
|
||||
}
|
||||
g->meshCombine = (Group::CombineAs)v;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user