Native addon compatibility

1.0.0:

- Compatible with official grease pencil tools
  - removed box deform and rotate canvas that existed in other
This commit is contained in:
Pullusb
2021-01-19 19:49:16 +01:00
parent 6774484226
commit fdbfaaa1e0
6 changed files with 17 additions and 944 deletions
-3
View File
@@ -8,7 +8,6 @@ def register_keymaps():
# km = addon.keymaps.new(name = "3D View", space_type = "VIEW_3D")# in 3D context
# km = addon.keymaps.new(name = "Window", space_type = "EMPTY")# from everywhere
## try initiate
km = addon.keymaps.new(name = "Grease Pencil Stroke Sculpt Mode", space_type = "EMPTY", region_type='WINDOW')
kmi = km.keymap_items.new('wm.context_toggle', type='ONE', value='PRESS')
@@ -24,11 +23,9 @@ def register_keymaps():
addon_keymaps.append((km, kmi))
def unregister_keymaps():
# wm = bpy.context.window_manager
for km, kmi in addon_keymaps:
km.keymap_items.remove(kmi)
# wm.keyconfigs.addon.keymaps.remove(km)
addon_keymaps.clear()