AttachablePlacement: fix editing by double-click

This commit is contained in:
DeepSOIC 2018-12-02 01:27:59 +03:00
parent e045481c95
commit b315aeaaf6

View File

@ -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,