fix: Fix tests.
parent
383f7d9bfd
commit
06ad0d62a5
|
@ -20,8 +20,9 @@ import enum
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from blender_maxwell import contracts as ct
|
|
||||||
from blender_maxwell.utils import logger
|
from oscillode import contracts as ct
|
||||||
|
from oscillode.utils import logger
|
||||||
|
|
||||||
log = logger.get(__name__)
|
log = logger.get(__name__)
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ class BLHandlers(pyd.BaseModel):
|
||||||
# - Properties
|
# - Properties
|
||||||
####################
|
####################
|
||||||
@staticproperty # type: ignore[arg-type]
|
@staticproperty # type: ignore[arg-type]
|
||||||
def hander_categories() -> tuple[str, ...]: # type: ignore[misc]
|
def handler_categories() -> tuple[str, ...]: # type: ignore[misc]
|
||||||
"""Returns an immutable string sequence of handler categories."""
|
"""Returns an immutable string sequence of handler categories."""
|
||||||
return (
|
return (
|
||||||
'animation_playback_post',
|
'animation_playback_post',
|
||||||
|
|
|
@ -38,7 +38,7 @@ class BLKeymapItem(pyd.BaseModel):
|
||||||
|
|
||||||
space_type: BLSpaceType = 'EMPTY'
|
space_type: BLSpaceType = 'EMPTY'
|
||||||
|
|
||||||
def register(self, addon_keymap: bpy.types.KeyMap) -> bpy.types.KeymapItem:
|
def register(self, addon_keymap: bpy.types.KeyMap) -> bpy.types.KeyMapItem:
|
||||||
"""Registers this hotkey with an addon keymap.
|
"""Registers this hotkey with an addon keymap.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
|
|
|
@ -120,7 +120,7 @@ BL_HANDLERS: ct.BLHandlers = ct.BLHandlers()
|
||||||
|
|
||||||
BL_KEYMAP_ITEMS: list[ct.BLKeymapItem] = [
|
BL_KEYMAP_ITEMS: list[ct.BLKeymapItem] = [
|
||||||
ct.BLKeymapItem(
|
ct.BLKeymapItem(
|
||||||
ct.OperatorType.ConnectViewerNode,
|
operator=ct.OperatorType.ConnectViewerNode,
|
||||||
event_type='LEFTMOUSE',
|
event_type='LEFTMOUSE',
|
||||||
event_value='PRESS',
|
event_value='PRESS',
|
||||||
ctrl=True,
|
ctrl=True,
|
||||||
|
|
|
@ -39,7 +39,7 @@ log = logger.get(__name__)
|
||||||
_REGISTERED_CLASSES: list[ct.BLClass] = []
|
_REGISTERED_CLASSES: list[ct.BLClass] = []
|
||||||
|
|
||||||
_REGISTERED_KEYMAPS: dict[ct.BLSpaceType, bpy.types.KeyMap] = {}
|
_REGISTERED_KEYMAPS: dict[ct.BLSpaceType, bpy.types.KeyMap] = {}
|
||||||
_REGISTERED_KEYMAP_ITEMS: list[tuple[bpy.types.KeyMap, bpy.types.KeymapItem]] = []
|
_REGISTERED_KEYMAP_ITEMS: list[tuple[bpy.types.KeyMap, bpy.types.KeyMapItem]] = []
|
||||||
|
|
||||||
_REGISTERED_HANDLERS: ct.BLHandlers | None = None
|
_REGISTERED_HANDLERS: ct.BLHandlers | None = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue