[PD] Pad/Pocket: fix reverse behavior
- bring back intended behavior as in FC 0.19: - if 2 lengths, then midplane is invisible - if reversed checked, then no symmetric and if symmetric then no reverse - unify the code for Pad and Pocket (reversed is always visible) - fix a typo in a bool name
This commit is contained in:
@@ -522,6 +522,7 @@ void TaskExtrudeParameters::onMidplaneChanged(bool on)
|
||||
{
|
||||
PartDesign::FeatureExtrude* extrude = static_cast<PartDesign::FeatureExtrude*>(vp->getObject());
|
||||
extrude->Midplane.setValue(on);
|
||||
ui->checkBoxReversed->setEnabled(!on);
|
||||
tryRecomputeFeature();
|
||||
}
|
||||
|
||||
@@ -529,6 +530,7 @@ void TaskExtrudeParameters::onReversedChanged(bool on)
|
||||
{
|
||||
PartDesign::FeatureExtrude* extrude = static_cast<PartDesign::FeatureExtrude*>(vp->getObject());
|
||||
extrude->Reversed.setValue(on);
|
||||
ui->checkBoxMidplane->setEnabled(!on);
|
||||
// update the direction
|
||||
tryRecomputeFeature();
|
||||
updateDirectionEdits();
|
||||
|
||||
Reference in New Issue
Block a user