Cleanup: odd indentation, also assign a variable for reuse
This commit is contained in:
parent
a2dae7e4b4
commit
ff92a23fe6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user