From 79df4134b0fc2eaf8bb3994678d9d13a4e236f08 Mon Sep 17 00:00:00 2001 From: paullee Date: Fri, 10 Aug 2018 06:44:07 +0800 Subject: [PATCH] 1. Fixed typo in previous commit (item 3) 2. Added URL of discussion post / thread 3. Previous commit - Added Landing Depth Control to ArchStairs Discussion:- https://forum.freecadweb.org/viewtopic.php?f=23&t=29358#p240197 https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p249409 https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p249498 --- src/Mod/Arch/ArchStairs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchStairs.py b/src/Mod/Arch/ArchStairs.py index 7b61c2dd3b..dfc5720fcc 100644 --- a/src/Mod/Arch/ArchStairs.py +++ b/src/Mod/Arch/ArchStairs.py @@ -267,7 +267,7 @@ class _Stairs(ArchComponent.Component): if obj.Base.Shape.BoundBox.ZLength: h = obj.Base.Shape.BoundBox.ZLength if obj.LandingDepth: - obj.TreadDepth = float(l-(landings*obj.LandingDepthWidthWidth.Value))/(obj.NumberOfSteps-(1+landings)) + obj.TreadDepth = float(l-(landings*obj.LandingDepth.Value))/(obj.NumberOfSteps-(1+landings)) else: obj.TreadDepth = float(l-(landings*obj.Width.Value))/(obj.NumberOfSteps-(1+landings)) obj.RiserHeight = float(h)/obj.NumberOfSteps