Commit: 7b743defd4f09cfc76a2ff55e20979b377a49691 Author: Bastien Montagne Date: Fri May 29 11:08:26 2015 +0200 Branches: master https://developer.blender.org/rB7b743defd4f09cfc76a2ff55e20979b377a49691
Fix wrong 'check context' handling in addon i18n messages generator. Reported (with patch) by yedpodtrzitko (yed podtrzitko), thanks a bunch! Differential Revision: https://developer.blender.org/D1327 =================================================================== M release/scripts/modules/bl_i18n_utils/bl_extract_messages.py =================================================================== 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 527bb71..5807534 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -64,7 +64,7 @@ def _gen_check_ctxt(settings): def _diff_check_ctxt(check_ctxt, minus_check_ctxt): - """Returns check_ctxt - minus_check_ctxt""" + """Removes minus_check_ctxt from check_ctxt""" for key in check_ctxt: if isinstance(check_ctxt[key], set): for warning in minus_check_ctxt[key]: @@ -898,7 +898,7 @@ def dump_addon_messages(module_name, do_checks, settings): del msgs[key] if check_ctxt: - check_ctxt = _diff_check_ctxt(check_ctxt, minus_check_ctxt) + _diff_check_ctxt(check_ctxt, minus_check_ctxt) # and we are done with those! del minus_pot _______________________________________________ Bf-blender-cvs mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-blender-cvs
