Skip to content

Commit

Permalink
fix(Register): Update Gizmodal Ops to work with the updated Blender 4…
Browse files Browse the repository at this point in the history
….0 keymap

concerns #10 and #12
  • Loading branch information
BlenderDefender committed Dec 2, 2023
1 parent a7a6fbd commit 2eeceec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
def register_keymap(*args):
wm = bpy.context.window_manager # Get the window manager context

keymaps = ["3D View", "UV Editor"]
# ! The 3D View keymap is not needed in Blender 4.0 and newer.
# ! It is there, to work with legacy Blender versions (3.x and older)
keymaps = ["3D View", "Pose", "Object Mode", "Curve", "Curves", "Mesh", "Armature", "Metaball", "Lattice", "UV Editor"]

for map in keymaps:
# Try to get the active keymap for the current map name.
Expand Down

0 comments on commit 2eeceec

Please sign in to comment.