Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-31 17:51:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-31 17:51:06 +0300
commit4f3913db9fbbc74ac1b04a2141598feaa7a58fa3 (patch)
treed8891ca82f025160ac0bff1d4bc7645731c49728 /release
parenta45113a11964987f7d91c847cc70d7c4c8f67008 (diff)
parent6df0bfad67e1dbeb84fb6121841305a7f2090b91 (diff)
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_text.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 9e9ddcf3505..81ccc9216a1 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -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()