Arch: Fixed axis property of components

This commit is contained in:
Yorik van Havre
2017-11-22 12:57:26 -02:00
parent 6c27307238
commit 4fa116a515

View File

@@ -338,7 +338,7 @@ class Component:
if self.clone(obj):
return
if obj.Base:
obj.Shape = obj.Base.Shape
obj.Shape = self.spread(obj,obj.Base.Shape)
def __getstate__(self):
return self.Type
@@ -585,7 +585,7 @@ class Component:
print("Arch: unable to cut object ",o.Name, " from ", obj.Name)
return base
def spread(self,obj,shape,placement):
def spread(self,obj,shape,placement=None):
"spreads this shape along axis positions"
points = None
if hasattr(obj,"Axis"):