+ allow to load PartDesign even if PySide is not found, suppress MinGW warnings
This commit is contained in:
@@ -191,11 +191,13 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
<< "PartDesign_LinearPattern"
|
||||
<< "PartDesign_PolarPattern"
|
||||
// << "PartDesign_Scaled"
|
||||
<< "PartDesign_MultiTransform"
|
||||
<< "PartDesign_InvoluteGear";
|
||||
<< "PartDesign_MultiTransform";
|
||||
// For 0.13 a couple of python packages like numpy, matplotlib and others
|
||||
// are not deployed with the installer on Windows. Thus, the WizardShaft is
|
||||
// not deployed either hence the check for the existence of the command.
|
||||
if (Gui::Application::Instance->commandManager().getCommandByName("PartDesign_InvoluteGear")) {
|
||||
*part << "PartDesign_InvoluteGear";
|
||||
}
|
||||
if (Gui::Application::Instance->commandManager().getCommandByName("PartDesign_WizardShaft")) {
|
||||
*part << "Separator" << "PartDesign_WizardShaft";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user