PDN: Make Loft hide its sections when task dialog accepted

This commit is contained in:
Kurt Kremitzki
2017-07-25 05:23:51 -05:00
committed by wmayer
parent c62a773cee
commit 373d81b2bc

View File

@@ -286,6 +286,12 @@ TaskDlgLoftParameters::~TaskDlgLoftParameters()
bool TaskDlgLoftParameters::accept()
{
// TODO Fill this with commands (2015-09-11, Fat-Zer)
PartDesign::Loft* pcLoft = static_cast<PartDesign::Loft*>(vp->getObject());
for(App::DocumentObject* obj : pcLoft->Sections.getValues()) {
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().hide(\"%s\")", obj->getNameInDocument());
}
return TaskDlgSketchBasedParameters::accept ();
}