disable update_has_underlay if update_props is disabled

Otherwise it was trying to load drawing styles too early, when drawing was not yet active. And then they were reloaded again during ActivateDrawingBase. Occurred after c2860e6, before this commit issue was kind of hidden.
This commit is contained in:
Andrej730
2025-05-20 10:48:52 +05:00
parent ccafc203b5
commit 0c2158089d
@@ -211,6 +211,8 @@ def update_document_name(self: "Document", context: bpy.types.Context) -> None:
def update_has_underlay(self: "BIMCameraProperties", context: bpy.types.Context) -> None:
if not self.update_props:
return
update_layer(self, context, "HasUnderlay", self.has_underlay)
assert context.scene
# making sure that camera is active