Arch: set the Lenght property of walls automatically when based on baselines

This commit is contained in:
Yorik van Havre 2015-12-20 12:41:25 -02:00
parent 5fa85ad31b
commit 19fd2c3195

View File

@ -466,6 +466,12 @@ class _Wall(ArchComponent.Component):
base = obj.Base.Shape.copy()
elif obj.Base.Shape.Edges:
# case 3: the base is flat, we need to extrude it
if not obj.Base.Shape.Faces:
# set the length property
if hasattr(obj.Base.Shape,"Length"):
l = obj.Base.Shape.Length
if obj.Length != l:
obj.Length = l
profiles = self.getProfiles(obj)
if profiles:
normal.multiply(height)