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>2010-02-15 14:24:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-15 14:24:43 +0300
commit882af97b4be8c692a53f0da49b68450456510bcb (patch)
treef7edaf6fd8b49134a89240c3b0fd318391e514af /release
parent536e448e7a02053108556d7f529eca181246a82b (diff)
classes were having their dictionary cleared when the blender extension data was freed which made re-registering fail.
now extensions can be enabled and disabled without having to reload them.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_userpref.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py
index e9de9f10d03..cfd6e9d037d 100644
--- a/release/scripts/ui/space_userpref.py
+++ b/release/scripts/ui/space_userpref.py
@@ -1406,7 +1406,6 @@ class WM_OT_extension_enable(bpy.types.Operator):
try:
mod = __import__(module_name)
- reload(mod) # FIXME: workaround for the same class not registering twice properly
mod.register()
except:
traceback.print_exc()
@@ -1428,7 +1427,6 @@ class WM_OT_extension_disable(bpy.types.Operator):
try:
mod = __import__(module_name)
mod.unregister()
- reload(mod) # FIXME: workaround for the same class not registering twice properly
except:
traceback.print_exc()