Merge branch 'blender-v2.81-release'

This commit is contained in:
Campbell Barton 2019-11-01 01:51:06 +11:00
commit 4f3913db9f
1 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@ class TEXT_HT_header(Header):
syntax.prop(st, "show_syntax_highlight", text="")
if text:
is_osl = text.name.endswith((".osl", ".osl"))
text_name = text.name
is_osl = text_name.endswith((".osl", ".oso"))
row = layout.row()
if is_osl:
@ -65,7 +66,7 @@ class TEXT_HT_header(Header):
row.operator("node.shader_script_update")
else:
row = layout.row()
row.active = text.name.endswith(".py")
row.active = text_name.endswith(".py")
row.prop(text, "use_module")
row = layout.row()