From 3334ea5c10cb31a62f26bdf2d50c4e6f54ba3469 Mon Sep 17 00:00:00 2001 From: Gorgious56 Date: Wed, 19 Oct 2022 16:13:53 +0200 Subject: [PATCH] Fix error when toggling viewport annotations if there is no active camera in the current scene --- src/blenderbim/blenderbim/bim/module/drawing/ui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/ui.py b/src/blenderbim/blenderbim/bim/module/drawing/ui.py index a0bdd7474e..9692049e10 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/ui.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/ui.py @@ -424,6 +424,7 @@ class BIM_PT_annotation_utilities(Panel): row = layout.row(align=True) row.prop(self.props, "should_draw_decorations", text="Viewport Annotations") + row.enabled = context.scene.camera is not None class BIM_UL_drawinglist(bpy.types.UIList):