+ fix various gcc & clang warnings
This commit is contained in:
@@ -133,16 +133,16 @@ App::Part* getPartFor(const App::DocumentObject* obj, bool messageIfNot) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static void buildDefaultPartAndBody(const App::Document* doc)
|
||||
{
|
||||
// This adds both the base planes and the body
|
||||
std::string PartName = doc->getUniqueObjectName("Part");
|
||||
//// create a PartDesign Part for now, can be later any kind of Part or an empty one
|
||||
Gui::Command::addModule(Gui::Command::Doc, "PartDesignGui");
|
||||
Gui::Command::doCommand(Gui::Command::Doc, "App.activeDocument().Tip = App.activeDocument().addObject('App::Part','%s')", PartName.c_str());
|
||||
Gui::Command::doCommand(Gui::Command::Doc, "PartDesignGui.setUpPart(App.activeDocument().%s)", PartName.c_str());
|
||||
Gui::Command::doCommand(Gui::Command::Gui, "Gui.activeView().setActiveObject('Part',App.activeDocument().%s)", PartName.c_str());
|
||||
}
|
||||
//static void buildDefaultPartAndBody(const App::Document* doc)
|
||||
//{
|
||||
// // This adds both the base planes and the body
|
||||
// std::string PartName = doc->getUniqueObjectName("Part");
|
||||
// //// create a PartDesign Part for now, can be later any kind of Part or an empty one
|
||||
// Gui::Command::addModule(Gui::Command::Doc, "PartDesignGui");
|
||||
// Gui::Command::doCommand(Gui::Command::Doc, "App.activeDocument().Tip = App.activeDocument().addObject('App::Part','%s')", PartName.c_str());
|
||||
// Gui::Command::doCommand(Gui::Command::Doc, "PartDesignGui.setUpPart(App.activeDocument().%s)", PartName.c_str());
|
||||
// Gui::Command::doCommand(Gui::Command::Gui, "Gui.activeView().setActiveObject('Part',App.activeDocument().%s)", PartName.c_str());
|
||||
//}
|
||||
|
||||
|
||||
void fixSketchSupport (Sketcher::SketchObject* sketch)
|
||||
|
||||
Reference in New Issue
Block a user