From 92110377814ec2087fe771aceb846b984ba3e185 Mon Sep 17 00:00:00 2001 From: paul lee Date: Sat, 9 Jan 2021 03:19:36 +0800 Subject: [PATCH] [ArchComponent] Link of Window get opening now --- src/Mod/Arch/ArchComponent.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 2fec7cb11f..b986a224bd 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -770,9 +770,10 @@ class Component(ArchIFC.IfcProduct): if base: subvolume = None - if (Draft.getType(o) == "Window") or (Draft.isClone(o,"Window",True)): - # windows can be additions or subtractions, treated the same way - subvolume = o.Proxy.getSubVolume(o) + + if (Draft.getType(o.getLinkedObject()) == "Window") or (Draft.isClone(o,"Window",True)): + # windows can be additions or subtractions, treated the same way + subvolume = o.getLinkedObject().Proxy.getSubVolume(o) elif (Draft.getType(o) == "Roof") or (Draft.isClone(o,"Roof")): # roofs define their own special subtraction volume subvolume = o.Proxy.getSubVolume(o)