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>2018-06-28 09:50:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-28 09:50:11 +0300
commit53e191e0a5e229dfff7a8bb1ac18e8dbd5120b31 (patch)
tree278fa7155ca1a4c4a69a8c133d83cdb5db6bd0fe /release/scripts/startup/bl_ui/space_text.py
parent8777b33699b2fc81bc503793599120d3dd86c9eb (diff)
parent597122d72b691ac6522b5ee2acd26e2b4b1135a5 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r--release/scripts/startup/bl_ui/space_text.py22
1 files changed, 14 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index af9c0e80ae5..37ea88dd546 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -54,20 +54,26 @@ class TEXT_HT_header(Header):
layout.separator_spacer()
if text:
- osl = text.name.endswith(".osl") or text.name.endswith(".oso")
+ is_osl = text.name.endswith((".osl", ".osl"))
row = layout.row()
if text.filepath:
if text.is_dirty:
- row.label(text=iface_("File: *%r (unsaved)") %
- text.filepath, translate=False)
+ row.label(
+ iface_(f"File: *{text.filepath} (unsaved)"),
+ translate=False,
+ )
else:
- row.label(text=iface_("File: %r") %
- text.filepath, translate=False)
+ row.label(
+ iface_(f"File: {text.filepath}"),
+ translate=False,
+ )
else:
- row.label(text="Text: External"
- if text.library
- else "Text: Internal")
+ row.label(
+ "Text: External"
+ if text.library
+ else "Text: Internal"
+ )
if osl:
row = layout.row()
row.operator("node.shader_script_update")