mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix error when toggling viewport annotations if there is no active camera in the current scene
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user