diff options
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py index 58461309720..87d54213d1b 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -424,6 +424,13 @@ def dump_rna_messages(msgs, reports, settings, verbose=False): # Recursively process subclasses. process_cls_list(cls.__subclasses__()) + # FIXME Workaround weird new (blender 3.2) issue where some classes (like `bpy.types.Modifier`) + # are not listed by `bpy.types.ID.__base__.__subclasses__()` until they are accessed from + # `bpy.types` (eg just executing `bpy.types.Modifier`). + cls_dir = dir(bpy.types) + for cls_name in cls_dir: + getattr(bpy.types, cls_name) + # Parse everything (recursively parsing from bpy_struct "class"...). process_cls_list(bpy.types.ID.__base__.__subclasses__()) |