diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-11 02:48:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-11 02:48:22 +0300 |
commit | 4612034cf45f2534b01bb038f80b7795e8b8e20d (patch) | |
tree | ba47ff0cb8d4916faa8fb2ff06dbf08883fae9b3 /release/scripts/ui/space_info.py | |
parent | 46bb5643b7660033bc0d15c5fcc752324a1b519f (diff) |
patch [#25809] Auto-Registration as utility function.
This removes auto-registration, committed by Martin r30961.
Realize this is a contentious topic but Brecht and myself both would rather opt-in registration.
TODO:
- addons need updating.
- class list will be modified to use weakrefs (should have been done for existing system too).
- will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.
Diffstat (limited to 'release/scripts/ui/space_info.py')
-rw-r--r-- | release/scripts/ui/space_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py index 9881cb55692..6c392cb9a3d 100644 --- a/release/scripts/ui/space_info.py +++ b/release/scripts/ui/space_info.py @@ -404,11 +404,11 @@ class HELP_OT_operator_cheat_sheet(bpy.types.Operator): def register(): - pass + bpy.utils.register_module(__name__) def unregister(): - pass + bpy.utils.unregister_module(__name__) if __name__ == "__main__": register() |