Cleanup: odd indentation, also assign a variable for reuse

This commit is contained in:
Campbell Barton 2024-03-29 10:06:19 +11:00
parent a2dae7e4b4
commit ff92a23fe6
1 changed files with 5 additions and 3 deletions

View File

@ -417,14 +417,16 @@ class AnnotationDataPanel:
bl_options = {'DEFAULT_CLOSED'}
def draw_header(self, context):
if context.space_data.type not in {
space = context.space_data
if space.type not in {
'VIEW_3D',
'TOPBAR',
'SEQUENCE_EDITOR',
'IMAGE_EDITOR',
'NODE_EDITOR',
'PROPERTIES'}:
self.layout.prop(context.space_data, "show_annotation", text="")
'PROPERTIES',
}:
self.layout.prop(space, "show_annotation", text="")
def draw(self, context):
layout = self.layout