fixing dressup features

This commit is contained in:
Sergo 2017-03-01 01:25:30 -05:00 committed by Yorik van Havre
parent f8e836221c
commit 6cbb76b667

View File

@ -1264,6 +1264,14 @@ bool CmdPartDesignSubtractiveLoft::isActive(void)
bool dressupGetSelected(Gui::Command* cmd, const std::string& which,
Gui::SelectionObject &selected)
{
App::Document *doc = cmd->getDocument();
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(
/*messageIfNot = */ PartDesignGui::assureModernWorkflow(doc));
// No PartDesign feature without Body past FreeCAD 0.16
if (!pcActiveBody && PartDesignGui::isModernWorkflow(doc))
return false;
std::vector<Gui::SelectionObject> selection = cmd->getSelection().getSelectionEx();
selection = cmd->getSelection().getSelectionEx();