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