[Arch] Arch_Stairs fix for #8444 (#8518)

- Recompute should not be called from onDocumentRestored. It causes issues when updating complex stairs.
This commit is contained in:
Roy-043
2023-02-16 21:09:06 +01:00
committed by GitHub
parent 14da2ac92b
commit 2c191f74c7

View File

@@ -421,7 +421,6 @@ class _Stairs(ArchComponent.Component):
obj.removeProperty("OutlineWireLeft")
obj.removeProperty("OutlineWireRight")
self.update_properties_to_0v20(obj)
doc.recompute()
from draftutils.messages import _wrn
_wrn("v0.20.3, " + obj.Label + ", "
+ translate("Arch", "removed properties 'OutlineWireLeft' and 'OutlineWireRight', and added properties 'RailingLeft' and 'RailingRight'"))
@@ -436,7 +435,6 @@ class _Stairs(ArchComponent.Component):
obj.RailingLeft = railingLeftObject
obj.RailingRight = railingRightObject
self.update_properties_to_0v20(obj)
doc.recompute()
from draftutils.messages import _wrn
_wrn("v0.20.3, " + obj.Label + ", "
+ translate("Arch", "changed the type of properties 'RailingLeft' and 'RailingRight'"))