Fixed several bugs when loading Arch objects from files

This commit is contained in:
Yorik van Havre
2012-04-12 11:35:24 -03:00
parent feaaa25c6f
commit cd2adf6a28
3 changed files with 48 additions and 34 deletions

View File

@@ -119,10 +119,10 @@ class _Structure(ArchComponent.Component):
length = obj.Length
else:
length = 1
if obj.Width:
width = obj.Width
else:
width = 1
width = 1
if hasattr(obj,"Width"):
if obj.Width:
width = obj.Width
if obj.Height:
height = obj.Height
else: