Arch: New multicore IFC importer
This commit is contained in:
@@ -461,7 +461,7 @@ class BuildingPart(ArchIFC.IfcProduct):
|
||||
return g
|
||||
|
||||
def touchChildren(self,obj):
|
||||
|
||||
|
||||
"Touches all descendents where applicable"
|
||||
|
||||
for child in obj.Group:
|
||||
@@ -472,6 +472,15 @@ class BuildingPart(ArchIFC.IfcProduct):
|
||||
elif Draft.getType(child) in ["Group","BuildingPart"]:
|
||||
self.touchChildren(child)
|
||||
|
||||
def addObject(self,obj,child):
|
||||
|
||||
"Adds an object to the group of this BuildingPart"
|
||||
|
||||
if not child in obj.Group:
|
||||
g = obj.Group
|
||||
g.append(child)
|
||||
obj.Group = g
|
||||
|
||||
|
||||
class ViewProviderBuildingPart:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user