parent
f05e4fe41d
commit
1017c01668
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
1.6.2
|
||||
|
||||
- disable keymap register for breakdowner on background
|
||||
|
||||
1.6.1
|
||||
|
||||
- removed: Auto Updater that was failing since 2.93
|
||||
|
|
|
@ -304,6 +304,8 @@ class OBJ_OT_breakdown_obj_anim(bpy.types.Operator):
|
|||
|
||||
breakdowner_addon_keymaps = []
|
||||
def register_keymaps():
|
||||
if bpy.app.background:
|
||||
return
|
||||
# pref = get_addon_prefs()
|
||||
# if not pref.breakdowner_use_shortcut:
|
||||
# return
|
||||
|
@ -323,6 +325,8 @@ def register_keymaps():
|
|||
breakdowner_addon_keymaps.append((km, kmi))
|
||||
|
||||
def unregister_keymaps():
|
||||
if bpy.app.background:
|
||||
return
|
||||
for km, kmi in breakdowner_addon_keymaps:
|
||||
km.keymap_items.remove(kmi)
|
||||
|
||||
|
@ -332,12 +336,10 @@ def unregister_keymaps():
|
|||
### --- REGISTER ---
|
||||
|
||||
def register():
|
||||
# if not bpy.app.background:
|
||||
bpy.utils.register_class(OBJ_OT_breakdown_obj_anim)
|
||||
register_keymaps()
|
||||
|
||||
def unregister():
|
||||
# if not bpy.app.background:
|
||||
unregister_keymaps()
|
||||
bpy.utils.unregister_class(OBJ_OT_breakdown_obj_anim)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ bl_info = {
|
|||
"name": "GP toolbox",
|
||||
"description": "Set of tools for Grease Pencil in animation production",
|
||||
"author": "Samuel Bernou, Christophe Seux",
|
||||
"version": (1, 6, 1),
|
||||
"version": (1, 6, 2),
|
||||
"blender": (2, 91, 0),
|
||||
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||
"warning": "",
|
||||
|
|
Loading…
Reference in New Issue