[Bf-blender-cvs] [2e9a0e12546] blender2.8: Fix space text script - keyboard for labels
Dalai Felinto
noreply at git.blender.org
Tue Aug 28 15:18:16 CEST 2018
Commit: 2e9a0e1254657e704beb1e856fbed8b89e512476
Author: Dalai Felinto
Date: Tue Aug 28 10:17:58 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB2e9a0e1254657e704beb1e856fbed8b89e512476
Fix space text script - keyboard for labels
I guess multi-line ui elements were not covered in the cleanup scripts.
===================================================================
M release/scripts/startup/bl_ui/space_text.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 8e370326d8c..9ef165a36a6 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -60,17 +60,17 @@ class TEXT_HT_header(Header):
if text.filepath:
if text.is_dirty:
row.label(
- iface_(f"File: *{text.filepath:s} (unsaved)"),
+ text=iface_(f"File: *{text.filepath:s} (unsaved)"),
translate=False,
)
else:
row.label(
- iface_(f"File: {text.filepath:s}"),
+ text=iface_(f"File: {text.filepath:s}"),
translate=False,
)
else:
row.label(
- "Text: External"
+ text="Text: External"
if text.library
else "Text: Internal"
)
More information about the Bf-blender-cvs
mailing list