From 2424fc4c7cf32d2f108d06ff6087ad7de47271fb Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 24 Sep 2013 20:31:03 -0300 Subject: [PATCH] Arch: small cosmetic fixes in ifc importer --- src/Mod/Arch/importIFC.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 96fd186c8..0556b1136 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -219,12 +219,16 @@ def read(filename): parent = None elif parent_ifcobj.type == "IfcBuildingStorey": parent = Arch.makeFloor(name=n) + parent.Label = n elif parent_ifcobj.type == "IfcBuilding": parent = Arch.makeBuilding(name=n) + parent.Label = n elif parent_ifcobj.type == "IfcSite": parent = Arch.makeSite(name=n) + parent.Label = n elif parent_ifcobj.type == "IfcWindow": parent = Arch.makeWindow(name=n) + parent.Label = n else: if DEBUG: print "Fixme: skipping unhandled parent: ", parent_ifcobj.id, " ", parent_ifcobj.type parent = None