fix [#26754] Live Edit and Editing UI scripts don't work
[blender-staging.git] / release / scripts / startup / bl_ui / space_text.py
index d21d695202321ed9f713d482733485985fc690c7..3d3fc8499af07333ef190bb851c30f8bf2fe3cf3 100644 (file)
@@ -297,3 +297,6 @@ class TEXT_MT_toolbox(bpy.types.Menu):
         layout.separator()
 
         layout.operator("text.run_script")
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)