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>2020-08-17 05:33:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-17 05:33:07 +0300
commitcafe5cd9b036b41dfe21fddc5ebc5bf7948c98aa (patch)
tree6e9903a79bea0969fb75e00811afae4e5efbf566 /release
parent5c78c16b1494cf3d4bbe3efaf45323e25a2ba52b (diff)
Cleanup: explain why checking the enabled state twice is needed
Address concern raised with the commit that added this extra check.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/addon_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index af6d4b1cd29..6fd091cefc2 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -492,6 +492,8 @@ def disable_all():
item for item in sys.modules.items()
if getattr(item[1], "__addon_enabled__", False)
]
+ # Check the enabled state again since it's possible the disable call
+ # of one add-on disables others.
for mod_name, mod in addon_modules:
if getattr(mod, "__addon_enabled__", False):
disable(mod_name)