mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: explain why checking the enabled state twice is needed
Address concern raised with the commit that added this extra check.
This commit is contained in:
parent
5c78c16b14
commit
cafe5cd9b0
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue