Arch: Fixed bug in wall not updated on window size change

This commit is contained in:
Yorik van Havre
2018-02-13 10:54:06 -02:00
parent 9dd1c7ac36
commit 23fff2b1d3

View File

@@ -658,10 +658,12 @@ class _Window(ArchComponent.Component):
if not "Restore" in obj.State:
if prop in ["Base","WindowParts"]:
self.execute(obj)
self.onChanged(obj,"Hosts")
elif prop in ["HoleDepth"]:
for o in obj.InList:
if Draft.getType(o) in AllowedHosts:
o.Proxy.execute(o)
self.onChanged(obj,"Hosts")
if prop in ["Width","Height"]:
if obj.Preset != 0:
if obj.Base:
@@ -682,6 +684,7 @@ class _Window(ArchComponent.Component):
# restoring constraints when loading a file fails
# because of load order, but it doesn't harm...
pass
self.onChanged(obj,"Hosts")
else:
ArchComponent.Component.onChanged(self,obj,prop)