Draft: fix issue with undo (#8267)

This commit is contained in:
Roy-043
2023-01-31 21:38:19 +01:00
committed by GitHub
parent 28df3265cc
commit f9cdaaf3d9
25 changed files with 249 additions and 117 deletions

View File

@@ -381,7 +381,9 @@ class Array(DraftLink):
def execute(self, obj):
"""Execute when the object is created or recomputed."""
if not obj.Base:
if self.props_changed_placement_only() \
or not obj.Base:
self.props_changed_clear()
return
pl = obj.Placement
@@ -419,7 +421,9 @@ class Array(DraftLink):
axis, center,
obj.NumberCircles, obj.Symmetry)
return super(Array, self).buildShape(obj, pl, pls)
self.buildShape(obj, pl, pls)
self.props_changed_clear()
return (not self.use_link)
# Alias for compatibility with v0.18 and earlier