PartDesign: [skip ci] hide base feature of pad after it successful recompute
This commit is contained in:
@@ -106,16 +106,15 @@ bool TaskDlgFeatureParameters::accept() {
|
||||
throw Base::TypeError("Bad object processed in the feature dialog.");
|
||||
}
|
||||
|
||||
App::DocumentObject* previous = static_cast<PartDesign::Feature*>(feature)->getBaseObject(/* silent = */ true );
|
||||
|
||||
FCMD_OBJ_HIDE(previous);
|
||||
|
||||
Gui::cmdAppDocument(feature, "recompute()");
|
||||
|
||||
if (!feature->isValid()) {
|
||||
throw Base::RuntimeError(vp->getObject()->getStatusString());
|
||||
}
|
||||
|
||||
App::DocumentObject* previous = static_cast<PartDesign::Feature*>(feature)->getBaseObject(/* silent = */ true );
|
||||
Gui::cmdAppObjectHide(previous);
|
||||
|
||||
// detach the task panel from the selection to avoid to invoke
|
||||
// eventually onAddSelection when the selection changes
|
||||
std::vector<QWidget*> subwidgets = getDialogContent();
|
||||
|
||||
Reference in New Issue
Block a user