diff --git a/lattice2AttachablePlacement.py b/lattice2AttachablePlacement.py index 6009e19..d646c52 100644 --- a/lattice2AttachablePlacement.py +++ b/lattice2AttachablePlacement.py @@ -90,7 +90,7 @@ class ViewProviderAttachableFeature(lattice2BaseFeature.ViewProviderLatticeFeatu return True def unsetEdit(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 FreeCADGui as Gui Gui.Control.closeDialog() return True