Arch: bugfix in Structure creation

This commit is contained in:
Yorik van Havre 2016-01-28 13:53:58 -02:00
parent 5ec2ea0e6c
commit 5fbdd4ac66

View File

@ -84,7 +84,7 @@ def makeStructure(baseobj=None,length=None,width=None,height=None,name="Structur
# don't set the length if we have a base object, otherwise the lenght X height calc
# gets wrong
obj.Length = p.GetFloat("StructureLength",100)
if height > length:
if obj.Height > obj.Length:
obj.Role = "Column"
return obj