Fix error when toggling viewport annotations if there is no active camera in the current scene

This commit is contained in:
Gorgious56
2022-10-19 16:13:53 +02:00
parent 16b05d9981
commit 3334ea5c10
@@ -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):