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>2011-02-11 02:48:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 02:48:22 +0300
commit4612034cf45f2534b01bb038f80b7795e8b8e20d (patch)
treeba47ff0cb8d4916faa8fb2ff06dbf08883fae9b3 /release/scripts/op/presets.py
parent46bb5643b7660033bc0d15c5fcc752324a1b519f (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/op/presets.py')
-rw-r--r--release/scripts/op/presets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/op/presets.py b/release/scripts/op/presets.py
index 36170fb6283..65653aeee3e 100644
--- a/release/scripts/op/presets.py
+++ b/release/scripts/op/presets.py
@@ -354,11 +354,11 @@ class WM_MT_operator_presets(bpy.types.Menu):
def register():
- pass
+ bpy.utils.register_module(__name__)
def unregister():
- pass
+ bpy.utils.unregister_module(__name__)
if __name__ == "__main__":
register()