fix [#26754] Live Edit and Editing UI scripts don't work
[blender-staging.git] / release / scripts / startup / bl_ui / space_userpref.py
index a81561de93fabb4bb20ebd3945d1fadd61281f3f..4a45b55c010bd2f58304ee2565df97132b8bf68f 100644 (file)
@@ -1188,3 +1188,6 @@ class WM_OT_addon_expand(bpy.types.Operator):
         info = addon_utils.module_bl_info(mod)
         info["show_expanded"] = not info["show_expanded"]
         return {'FINISHED'}
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)