PartDesign: Fix newSketch not working when editing a body from an external file.
This commit is contained in:
committed by
WandererFan
parent
27d2e5d07f
commit
374c5713b2
@@ -247,7 +247,7 @@ public:
|
||||
|
||||
guidocument->openCommand(QT_TRANSLATE_NOOP("Command", "Create a Sketch on Face"));
|
||||
FCMD_OBJ_CMD(activeBody, "newObject('Sketcher::SketchObject','" << FeatName << "')");
|
||||
auto Feat = appdocument->getObject(FeatName.c_str());
|
||||
auto Feat = activeBody->getDocument()->getObject(FeatName.c_str());
|
||||
FCMD_OBJ_CMD(Feat, "AttachmentSupport = " << supportString);
|
||||
FCMD_OBJ_CMD(Feat, "MapMode = '" << Attacher::AttachEngine::getModeName(Attacher::mmFlatFace)<<"'");
|
||||
Gui::Command::updateActive();
|
||||
|
||||
Reference in New Issue
Block a user