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>2021-08-13 08:51:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-13 08:51:08 +0300
commit3e775a4fc57cfd48954adcf284354312f34d5412 (patch)
tree76b2bb724bfdb9efc1d74d067ff5b1da8370e12c /release/scripts/startup/bl_ui/space_text.py
parent41e650981861c2f18ab0548e18851d1d761066ff (diff)
PyAPI: remove the .py extension requirement for startup registration
This was left over from when these scripts were loaded as modules, where their names needed to be compatible with Pythons module naming. Version patch existing files so text with register enabled without a `.py` extension wont start executing on startup. Resolves T89532.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r--release/scripts/startup/bl_ui/space_text.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 93ab12e8462..811e7fd41c5 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -268,10 +268,7 @@ class TEXT_MT_text(Menu):
layout.operator("text.make_internal")
layout.separator()
- row = layout.row()
- row.active = text.name.endswith(".py")
- row.prop(text, "use_module")
- row = layout.row()
+ layout.prop(text, "use_module")
layout.prop(st, "use_live_edit")