Fix #5256. Use layer collection visibility, not collection visibility to hide types.

This commit is contained in:
Dion Moult
2024-09-02 18:48:09 +10:00
parent eec4b37827
commit fb803ac35d
4 changed files with 26 additions and 34 deletions
+3 -2
View File
@@ -130,10 +130,11 @@ def main(
if settings.drawing_guid:
found_guid = False
for f in files:
try:
try:
f.by_guid(settings.drawing_guid)
found_guid = True
except: pass
except:
pass
if not found_guid:
raise ValueError(f"Unable to find guid {settings.drawing_guid!r}")
sr.setElevationRefGuid(settings.drawing_guid)