Draft: fix issue with undo (#8267)
This commit is contained in:
@@ -59,6 +59,10 @@ class Facebinder(DraftObject):
|
||||
obj.setEditorMode("Area",1)
|
||||
|
||||
def execute(self,obj):
|
||||
if self.props_changed_placement_only():
|
||||
self.props_changed_clear()
|
||||
return
|
||||
|
||||
import Part
|
||||
pl = obj.Placement
|
||||
if not obj.Faces:
|
||||
@@ -117,6 +121,10 @@ class Facebinder(DraftObject):
|
||||
obj.Shape = sh
|
||||
obj.Placement = pl
|
||||
obj.Area = area
|
||||
self.props_changed_clear()
|
||||
|
||||
def onChanged(self, obj, prop):
|
||||
self.props_changed_store(prop)
|
||||
|
||||
def addSubobjects(self,obj,facelinks):
|
||||
"""adds facelinks to this facebinder"""
|
||||
|
||||
Reference in New Issue
Block a user