4.3 Compatibility & Editable Hotkeys #1

Merged
Demeter Dzadik merged 4 commits from demeters_branch into main 2024-08-15 12:47:59 +02:00

4 Commits

Author SHA1 Message Date
8cc8b274ca Address feedback from Nika
- Use `os.path.join` instead of typing out backslashes.
- Fix edit mode A key was summoning the Object mode pie menu instead of the Mesh Edit one.
- Add contributors to manifest, and myself. Remove related code comments.
2024-08-15 11:28:28 +01:00
70ec0ebfdc Implement feedback from Pablo Vazquez
- Changing the hotkeys UI name display from "Pie Name (Keymap)" to "Keymap - Pie Name".
- Change the hotkey reset icon from "BACK" to "LOOP_BACK"

I also changed the names (bl_label) of the pie menus to be more consistent.
2024-08-15 10:54:24 +01:00
6bbe12134f Bring in CloudRIg's hotkey and registration system
About the hotkey system:
Previously, it was not possible or very inconvenient at best, to customize the keybindings of this add-on. For example, to edit the Proportional Editing Pie's shortcut from Shift O to just O, the user would have to find the 3 registered hotkeys in 3 different places in their keymap editor, which is of course, hot garbage.
Now, keymap entries are displayed in the add-on's preferences in a way that they are editable.

About the registering system:
I'm not sure why, but previously, this add-on would not reload its code when Reload Scripts is executed inside Blender, so for every code change, Blender had to be restarted. This is no longer the case, and the add-on cleanly unregisters itself without any residual registered classes or hotkeys. And Reload Scripts works fine.

Since this commit affects basically the entire codebase, I took the opportunity to format everything with Black.

Also fixed the Manipulator Gizmo Toggle not working, a typo discovered while testing.
2024-08-14 19:18:10 +01:00
eca0f4ce55 Make compatible with 4.3
Since brush icons no longer ship with Blender, I had to take them from the 4.2 files and package them with the add-on.

No functional changes. Backwards compatible with 4.2 up to presumably 2.80.
2024-08-14 19:18:06 +01:00