Draft: Edit, change startEditing method to accept (obj, node_idx)

This enable to start editing also without an user click event, by just calling the method and specifying the object and the edit point index.
It is used for alternative edit mode (alt_edit_mode) by arc context menu
This commit is contained in:
carlopav
2021-05-24 23:26:26 +02:00
parent b108f66780
commit bd02136f9d
2 changed files with 20 additions and 18 deletions

View File

@@ -290,7 +290,7 @@ class DraftCircleGuiTools(GuiTools):
if action in ("move arc", "set radius",
"set first angle", "set last angle"):
edit_command.alt_edit_mode = 1
edit_command.startEditing(edit_command.event)
edit_command.startEditing(obj, node_idx)
def init_preview_object(self, obj):
return trackers.arcTracker()