Initial commit

This commit is contained in:
2024-11-23 12:28:01 -06:00
commit 42711a6044
6 changed files with 1082 additions and 0 deletions

28
keymaps.py Normal file
View File

@ -0,0 +1,28 @@
# SPDX-FileCopyrightText: 2010-2023 Blender Foundation
#
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from .operators import *
from typing import List, Tuple
addon_keymaps = []
def register() -> None:
wm = bpy.context.window_manager
kc = wm.keyconfigs.addon
if kc is None:
return
km = kc.keymaps.new(name="File Browser Main")
kmi = km.keymap_items.new("dspl.browse_poses", type="L", value="PRESS", alt=True)
kmi.active = True
addon_keymaps.append((km, kmi))
def unregister() -> None:
for km, kmi in addon_keymaps:
km.keymap_items.remove(kmi)
addon_keymaps.clear()