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:
-rw-r--r--release/scripts/modules/bpy/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index 1bb62fdb29f..e3e93203235 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -588,8 +588,9 @@ def _bpy_module_classes(module, is_registered=False):
if cls is None:
del typemap_list[i]
- elif is_registered == ("bl_rna" in cls.__dict__):
- yield (cls, path, line)
+ else:
+ if is_registered == ("bl_rna" in cls.__dict__):
+ yield (cls, path, line)
i += 1