Add Draft workbench to .pre-commit-config (#24664)
* Add Draft workbench to .pre-commit-config * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -39,9 +39,8 @@ class Block(DraftObject):
|
||||
def __init__(self, obj):
|
||||
super().__init__(obj, "Block")
|
||||
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property",
|
||||
"The components of this block")
|
||||
obj.addProperty("App::PropertyLinkList","Components", "Draft", _tip, locked=True)
|
||||
_tip = QT_TRANSLATE_NOOP("App::Property", "The components of this block")
|
||||
obj.addProperty("App::PropertyLinkList", "Components", "Draft", _tip, locked=True)
|
||||
|
||||
def onDocumentRestored(self, obj):
|
||||
super().onDocumentRestored(obj)
|
||||
@@ -56,6 +55,7 @@ class Block(DraftObject):
|
||||
return
|
||||
|
||||
import Part
|
||||
|
||||
plm = obj.Placement
|
||||
shps = []
|
||||
for c in obj.Components:
|
||||
|
||||
Reference in New Issue
Block a user