From 4fa5d41ef5ab47294c2f9c156fdaa4116cc13fd1 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 27 Jun 2017 13:30:43 -0300 Subject: [PATCH] Arch: Small fix in Rebar --- src/Mod/Arch/ArchRebar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Arch/ArchRebar.py b/src/Mod/Arch/ArchRebar.py index f3652b7f32..bd2859fc4b 100644 --- a/src/Mod/Arch/ArchRebar.py +++ b/src/Mod/Arch/ArchRebar.py @@ -284,6 +284,7 @@ class _Rebar(ArchComponent.Component): if not DraftVecUtils.isNull(obj.Direction): axis = FreeCAD.Vector(obj.Direction) axis.normalize() + size = (ArchCommands.projectToVector(father.Shape.copy(),axis)).Length if hasattr(obj,"Distance"): if obj.Distance.Value: size = obj.Distance.Value