From 623ddc4aa6fc4006308fdbd9c7172d1fc7efcf17 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 22 Feb 2021 11:37:31 +0100 Subject: 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. --- release/scripts/modules/bl_i18n_utils/bl_extract_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release') 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) -- cgit v1.2.3