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