From c6db3f98bbc152a9c839010f25fffbbdff576660 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Mon, 13 Nov 2023 09:47:10 -0300 Subject: [PATCH] Fix modal key assignment for "Rotate Normals" in keymap versioning Error in 78943edc5d The key was not included in the appropriate condition block, leading to an error. --- scripts/modules/bl_keymap_utils/versioning.py | 4 ++-- scripts/presets/text_editor/{Internal.py => internal.py} | 0 .../{Visual_Studio_Code.py => visual_studio_code.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename scripts/presets/text_editor/{Internal.py => internal.py} (100%) rename scripts/presets/text_editor/{Visual_Studio_Code.py => visual_studio_code.py} (100%) diff --git a/scripts/modules/bl_keymap_utils/versioning.py b/scripts/modules/bl_keymap_utils/versioning.py index bd2d039a32a..5188ca7bd54 100644 --- a/scripts/modules/bl_keymap_utils/versioning.py +++ b/scripts/modules/bl_keymap_utils/versioning.py @@ -83,8 +83,8 @@ def keyconfig_update(keyconfig_data, keyconfig_version): elif item_modal == 'ROTATE': km_items.append(('TRACKBALL', item_event, None)) - # The modal key for "Rotate Normals" also didn't exist until then. - km_items.append(('ROTATE_NORMALS', {"type": 'N', "value": 'PRESS'}, None)) + # The modal key for "Rotate Normals" also didn't exist until then. + km_items.append(('ROTATE_NORMALS', {"type": 'N', "value": 'PRESS'}, None)) if keyconfig_version <= (4, 0, 3): if not has_copy: diff --git a/scripts/presets/text_editor/Internal.py b/scripts/presets/text_editor/internal.py similarity index 100% rename from scripts/presets/text_editor/Internal.py rename to scripts/presets/text_editor/internal.py diff --git a/scripts/presets/text_editor/Visual_Studio_Code.py b/scripts/presets/text_editor/visual_studio_code.py similarity index 100% rename from scripts/presets/text_editor/Visual_Studio_Code.py rename to scripts/presets/text_editor/visual_studio_code.py