Sketcher: fix external editing

This commit is contained in:
Zheng, Lei
2019-08-05 08:04:03 +08:00
committed by wmayer
parent e288bb672d
commit 0f66755843
6 changed files with 29 additions and 57 deletions

View File

@@ -142,7 +142,7 @@ void CmdSketcherToggleConstruction::activated(int iMsg)
if (it->size() > 4 && it->substr(0,4) == "Edge") {
int GeoId = std::atoi(it->substr(4,4000).c_str()) - 1;
// issue the actual commands to toggle
FCMD_OBJ_CMD2("App.ActiveDocument.%s.toggleConstruction(%d) ",selection[0].getObject(),GeoId);
FCMD_OBJ_CMD2("toggleConstruction(%d) ",selection[0].getObject(),GeoId);
}
}
// finish the transaction and update