Fix T38315: keymap configuration export did not export deactivated items correct.

This commit is contained in:
Brecht Van Lommel 2014-01-22 14:24:37 +01:00
parent 4503f82ba2
commit 418aafd503
Notes: blender-bot 2023-11-20 12:14:32 +01:00
Referenced by issue #38315, Key Configuration Export / Import doesn't save / load (de)activate states
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ def _kmistr(kmi, is_modal):
if props is not None:
_export_properties("kmi.properties", props, kmi_id, s)
if not kmi.active:
s.append("kmi.active = False\n")
return "".join(s)