Arch: Small fix in Rebar

This commit is contained in:
Yorik van Havre
2017-06-27 13:30:43 -03:00
parent 7deef8fb82
commit 4fa5d41ef5

View File

@@ -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