PDN: Make Loft hide its sections when task dialog accepted
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user