diff --git a/src/Mod/Path/InitGui.py b/src/Mod/Path/InitGui.py index 4adac6f14..cfcec1702 100644 --- a/src/Mod/Path/InitGui.py +++ b/src/Mod/Path/InitGui.py @@ -91,8 +91,8 @@ class PathWorkbench ( Workbench ): # build commands list projcmdlist = ["Path_Project", "Path_ToolTableEdit","Path_Post","Path_Inspect"] prepcmdlist = ["Path_Plane","Path_Fixture","Path_LoadTool","Path_ToolLenOffset","Path_Comment","Path_Stop", - "Path_FaceProfile","Path_FacePocket","Path_Custom"] - opcmdlist = ["Path_Profile","Path_Kurve","Path_Pocket","Path_Drilling","Path_FromShape"] + "Path_FaceProfile","Path_FacePocket","Path_Custom","Path_FromShape"] + opcmdlist = ["Path_Profile","Path_Kurve","Path_Pocket","Path_Drilling"] modcmdlist = ["Path_Copy","Path_CompoundExtended","Path_Dressup","Path_Hop","Path_Array"] diff --git a/src/Mod/Path/PathScripts/PathMachine.py b/src/Mod/Path/PathScripts/PathMachine.py index 15d1adc59..e69e937fa 100644 --- a/src/Mod/Path/PathScripts/PathMachine.py +++ b/src/Mod/Path/PathScripts/PathMachine.py @@ -184,13 +184,17 @@ class _ViewProviderMachine: # this is executed when a property of the APP OBJECT changes pass - def setEdit(self,vobj,mode): #optional + def setEdit(self,vobj,mode=0): #optional # this is executed when the object is double-clicked in the tree pass - def unsetEdit(self,vobj,mode): #optional + def unsetEdit(self,vobj,mode=0): #optional # this is executed when the user cancels or terminates edit mode pass + + def doubleClicked(self,vobj): + from PathScripts import TooltableEditor + TooltableEditor.edit(vobj.Object.Name) class CommandPathMachine: def GetResources(self):