Skip to content

Commit

Permalink
issue #2808
Browse files Browse the repository at this point in the history
  • Loading branch information
usakhelo authored and wwmayer committed Mar 20, 2017
1 parent 2c9d5e3 commit 86cb37b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Mod/PartDesign/Gui/Command.cpp
Expand Up @@ -1905,13 +1905,15 @@ CmdPartDesignMultiTransform::CmdPartDesignMultiTransform()
void CmdPartDesignMultiTransform::activated(int iMsg)
{
Q_UNUSED(iMsg);
App::Document *doc = getDocument();
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(
/*messageIfNot = */ PartDesignGui::assureModernWorkflow(doc));
// No PartDesign feature without Body past FreeCAD 0.16
App::Document *doc = getDocument();
if (!PartDesignGui::assureModernWorkflow(doc))
return;

// No PartDesign feature without Body past FreeCAD 0.16
if (!pcActiveBody && PartDesignGui::isModernWorkflow(doc))
return;
PartDesign::Body *pcActiveBody = PartDesignGui::getBody(true);

if (!pcActiveBody)
return;

std::vector<App::DocumentObject*> features;

Expand Down

0 comments on commit 86cb37b

Please sign in to comment.