From 2c191f74c73c9c6572f002393d2b53263c970211 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:09:06 +0100 Subject: [PATCH] [Arch] Arch_Stairs fix for #8444 (#8518) - Recompute should not be called from onDocumentRestored. It causes issues when updating complex stairs. --- src/Mod/Arch/ArchStairs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Mod/Arch/ArchStairs.py b/src/Mod/Arch/ArchStairs.py index 7c1e8f725d..5d2aadc4e0 100644 --- a/src/Mod/Arch/ArchStairs.py +++ b/src/Mod/Arch/ArchStairs.py @@ -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'"))