harmonize creation of linear pattern inside a multi transform to direction creation of linear pattern

This commit is contained in:
wmayer
2017-09-29 23:57:31 +02:00
parent 2244292552
commit 5a1a88568a
3 changed files with 21 additions and 4 deletions

View File

@@ -1673,7 +1673,9 @@ void prepareTransformed(Gui::Command* cmd, const std::string& which,
}
str << "]";
Gui::Command::openCommand((std::string("Make ") + which + " feature").c_str());
std::string msg("Make ");
msg += which;
Gui::Command::openCommand(msg.c_str());
Gui::Command::doCommand(Gui::Command::Doc,"App.activeDocument().%s.newObject(\"PartDesign::%s\",\"%s\")",
PartDesignGui::getBody(false)->getNameInDocument(), which.c_str(), FeatName.c_str());
// FIXME: There seems to be kind of a race condition here, leading to sporadic errors like