forked from bartvdbraak/blender
Cleanup: remove underscore prefix for used vars
Also remove unused vars.
This commit is contained in:
parent
f69ea92599
commit
cd02fe5d70
@ -1442,10 +1442,10 @@ class CLIP_MT_tracking_context_menu(Menu):
|
|||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return context.space_data.clip
|
return context.space_data.clip
|
||||||
|
|
||||||
def draw(self, _context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
mode = _context.space_data.mode
|
mode = context.space_data.mode
|
||||||
|
|
||||||
if mode == 'TRACKING':
|
if mode == 'TRACKING':
|
||||||
|
|
||||||
|
@ -129,10 +129,10 @@ class TEXT_PT_properties(Panel):
|
|||||||
flow.active = False
|
flow.active = False
|
||||||
row = flow.row(align=True)
|
row = flow.row(align=True)
|
||||||
st = context.space_data
|
st = context.space_data
|
||||||
row.prop(st, "show_margin", text = "Margin")
|
row.prop(st, "show_margin", text="Margin")
|
||||||
rowsub = row.row()
|
rowsub = row.row()
|
||||||
rowsub.active = st.show_margin
|
rowsub.active = st.show_margin
|
||||||
rowsub.prop(st, "margin_column", text = "")
|
rowsub.prop(st, "margin_column", text="")
|
||||||
|
|
||||||
flow.prop(st, "font_size")
|
flow.prop(st, "font_size")
|
||||||
flow.prop(st, "tab_width")
|
flow.prop(st, "tab_width")
|
||||||
@ -285,8 +285,6 @@ class TEXT_MT_format(Menu):
|
|||||||
|
|
||||||
def draw(self, _context):
|
def draw(self, _context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
st = _context.space_data
|
|
||||||
text = st.text
|
|
||||||
|
|
||||||
layout.operator("text.indent")
|
layout.operator("text.indent")
|
||||||
layout.operator("text.unindent")
|
layout.operator("text.unindent")
|
||||||
@ -321,12 +319,11 @@ class TEXT_MT_edit(Menu):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
return (context.space_data.text)
|
return context.space_data.text is not None
|
||||||
|
|
||||||
def draw(self, _context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
st = _context.space_data
|
st = context.space_data
|
||||||
text = st.text
|
|
||||||
|
|
||||||
layout.operator("ed.undo")
|
layout.operator("ed.undo")
|
||||||
layout.operator("ed.redo")
|
layout.operator("ed.redo")
|
||||||
@ -369,8 +366,6 @@ class TEXT_MT_toolbox(Menu):
|
|||||||
|
|
||||||
def draw(self, _context):
|
def draw(self, _context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
st = _context.space_data
|
|
||||||
text = st.text
|
|
||||||
|
|
||||||
layout.operator_context = 'INVOKE_DEFAULT'
|
layout.operator_context = 'INVOKE_DEFAULT'
|
||||||
|
|
||||||
|
@ -154,10 +154,10 @@ class TOPBAR_MT_editor_menus(Menu):
|
|||||||
bl_idname = "TOPBAR_MT_editor_menus"
|
bl_idname = "TOPBAR_MT_editor_menus"
|
||||||
bl_label = ""
|
bl_label = ""
|
||||||
|
|
||||||
def draw(self, _context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
if _context.area.show_menus:
|
if context.area.show_menus:
|
||||||
layout.menu("TOPBAR_MT_app", text="", icon='BLENDER')
|
layout.menu("TOPBAR_MT_app", text="", icon='BLENDER')
|
||||||
else:
|
else:
|
||||||
layout.menu("TOPBAR_MT_app", text="Blender")
|
layout.menu("TOPBAR_MT_app", text="Blender")
|
||||||
|
Loading…
Reference in New Issue
Block a user