From 4fa116a51514069035d6ecfdad2b3b104c5b096d Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Wed, 22 Nov 2017 12:57:26 -0200 Subject: [PATCH] Arch: Fixed axis property of components --- src/Mod/Arch/ArchComponent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 703737dd49..1a61bb7be2 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -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"):