From b315aeaaf6939454d48458ea1c0180a6369cde7c Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 2 Dec 2018 01:27:59 +0300 Subject: [PATCH] AttachablePlacement: fix editing by double-click --- lattice2AttachablePlacement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lattice2AttachablePlacement.py b/lattice2AttachablePlacement.py index b1c90ee..2d59cb3 100644 --- a/lattice2AttachablePlacement.py +++ b/lattice2AttachablePlacement.py @@ -79,8 +79,9 @@ class AttachablePlacement(AttachableFeature): class ViewProviderAttachableFeature(lattice2BaseFeature.ViewProviderLatticeFeature): always_edit_attachment = False + def setEdit(self,vobj,mode): - if not (mode == EDIT_ATTACHMENT or (mode == 0 and always_edit_attachment)): raise NotImplementedError() + if not (mode == EDIT_ATTACHMENT or (mode == 0 and self.always_edit_attachment)): raise NotImplementedError() import PartGui import FreeCADGui as Gui PartGui.AttachmentEditor.editAttachment(self.Object,