Cleanup: pep8

This commit is contained in:
Campbell Barton
2018-06-28 08:27:03 +02:00
parent a18a6a1441
commit d8d245917d
5 changed files with 78 additions and 84 deletions

View File

@@ -46,17 +46,15 @@ class TEXT_HT_header(Header):
row.prop(st, "show_word_wrap", text="")
row.prop(st, "show_syntax_highlight", text="")
layout.separator_spacer()
layout.separator_spacer()
row = layout.row(align=True)
row.template_ID(st, "text", new="text.new", unlink="text.unlink", open="text.open")
layout.separator_spacer()
row = layout.row(align=True)
row.template_ID(st, "text", new="text.new", unlink="text.unlink", open="text.open")
if text:
osl = text.name.endswith(".osl") or text.name.endswith(".oso")
layout.separator_spacer()
if text:
osl = text.name.endswith(".osl") or text.name.endswith(".oso")
row = layout.row()
if text.filepath:
@@ -70,18 +68,16 @@ class TEXT_HT_header(Header):
row.label(text="Text: External"
if text.library
else "Text: Internal")
if osl:
row = layout.row()
row.operator("node.shader_script_update")
else:
row = layout.row()
row.active = text.name.endswith(".py")
row.prop(text, "use_module")
row = layout.row()
row.operator("text.run_script")
if osl:
row = layout.row()
row.operator("node.shader_script_update")
else:
row = layout.row()
row.active = text.name.endswith(".py")
row.prop(text, "use_module")
row = layout.row()
row.operator("text.run_script")
class TEXT_MT_editor_menus(Menu):