diff options
author | Bastien Montagne <bastien@blender.org> | 2021-02-22 13:37:31 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-02-22 14:20:25 +0300 |
commit | 623ddc4aa6fc4006308fdbd9c7172d1fc7efcf17 (patch) | |
tree | 0ad03450c9daf6e29d755bb903e7a6d56aea546d /release | |
parent | 06212759bc7285a131c3ee811aec1ee240841c2c (diff) |
Fix i18n messages extraction tool after update to support py 3.10.
The new defferred approach broke existing way to access items from
struct definition...
See T85872.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | 2 |
1 files changed, 1 insertions, 1 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 8e0832fe8da..9e59a245cc4 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -862,7 +862,7 @@ def dump_messages(do_messages, do_checks, settings): dump_src_messages(msgs, reports, settings) # Get strings from addons' categories. - for uid, label, tip in bpy.types.WindowManager.addon_filter[1]['items'](bpy.context.window_manager, bpy.context): + for uid, label, tip in bpy.types.WindowManager.addon_filter.keywords['items'](bpy.context.window_manager, bpy.context): process_msg(msgs, settings.DEFAULT_CONTEXT, label, "Add-ons' categories", reports, None, settings) if tip: process_msg(msgs, settings.DEFAULT_CONTEXT, tip, "Add-ons' categories", reports, None, settings) |