Fix T38315: keymap configuration export did not export deactivated items correct.
This commit is contained in:
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
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue