Skip to content

Commit

Permalink
[PD] fix Pad/Pocket logic issue
Browse files Browse the repository at this point in the history
- fixes the bug reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=70266
  as Method #2
  -> When switching to two dimensions, symmetric must be unchecked if it is checked
  • Loading branch information
donovaly committed Jul 17, 2022
1 parent faa1f96 commit 094ae93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/PartDesign/Gui/TaskPadParameters.cpp
Expand Up @@ -107,6 +107,9 @@ void TaskPadParameters::onModeChanged(int index)
break;
case Modes::TwoDimensions:
pcPad->Type.setValue("TwoLengths");
// symmetric is then not possible
if (ui->checkBoxMidplane->isChecked())
ui->checkBoxMidplane->setChecked(false);
break;
}

Expand Down
3 changes: 3 additions & 0 deletions src/Mod/PartDesign/Gui/TaskPocketParameters.cpp
Expand Up @@ -118,6 +118,9 @@ void TaskPocketParameters::onModeChanged(int index)
case Modes::TwoDimensions:
oldLength = pcPocket->Length.getValue();
pcPocket->Type.setValue("TwoLengths");
// symmetric is then not possible
if (ui->checkBoxMidplane->isChecked())
ui->checkBoxMidplane->setChecked(false);
break;
}

Expand Down

0 comments on commit 094ae93

Please sign in to comment.