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
This commit is contained in:
parent
166408cfe2
commit
7b743defd4
@ -64,7 +64,7 @@ def _gen_check_ctxt(settings):
|
|||||||
|
|
||||||
|
|
||||||
def _diff_check_ctxt(check_ctxt, minus_check_ctxt):
|
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:
|
for key in check_ctxt:
|
||||||
if isinstance(check_ctxt[key], set):
|
if isinstance(check_ctxt[key], set):
|
||||||
for warning in minus_check_ctxt[key]:
|
for warning in minus_check_ctxt[key]:
|
||||||
@ -898,7 +898,7 @@ def dump_addon_messages(module_name, do_checks, settings):
|
|||||||
del msgs[key]
|
del msgs[key]
|
||||||
|
|
||||||
if check_ctxt:
|
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!
|
# and we are done with those!
|
||||||
del minus_pot
|
del minus_pot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user