diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-23 16:53:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-23 17:01:27 +0300 |
commit | 8959f1798cfc86924493347304118c61bd5c7f7a (patch) | |
tree | 547f68e55689efe12d98d5067e108f1de2b7bf0f /archipack | |
parent | bd6178fa6fe6b65c009ca8b8117fdb9fd3bc61b8 (diff) |
Update for keymap changes.
Diffstat (limited to 'archipack')
-rw-r--r-- | archipack/archipack_keymaps.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archipack/archipack_keymaps.py b/archipack/archipack_keymaps.py index a30b31e9..537833ee 100644 --- a/archipack/archipack_keymaps.py +++ b/archipack/archipack_keymaps.py @@ -52,7 +52,9 @@ class Keymaps: """ # provide abstration between user and addon # with different select mouse side - mouse_right = context.user_preferences.inputs.select_mouse + wm = context.window_manager + keyconfig = wm.keyconfigs.active + mouse_right = getattr(keyconfig.preferences, "select_mouse", "LEFT") if mouse_right == 'LEFT': mouse_left = 'RIGHT' mouse_right_side = 'Left' |