BIM: fix regression caused by Link Hosts handling (#27406)

This commit is contained in:
Roy-043
2026-02-08 04:43:30 +01:00
committed by GitHub
parent b441a3b6c1
commit 105543bf17

View File

@@ -45,6 +45,8 @@ class ArchSketch(ArchSketchObject):
pass
else:
if "Hosts" not in prop:
# inherited properties of Link are not in PropertiesList:
old_hosts = getattr(fp, "Hosts", [])
fp.addProperty(
"App::PropertyLinkList",
"Hosts",
@@ -52,6 +54,9 @@ class ArchSketch(ArchSketchObject):
QT_TRANSLATE_NOOP("App::Property", "The objects that host this window"),
locked=True,
)
fp.Hosts = old_hosts
for host in old_hosts:
host.touch()
# Arch Window's code