Cleanup: defer loading anim_utils (previous wm.py commit wasn't enough)
This commit is contained in:
@@ -9,7 +9,6 @@ Pose Library - usage functions.
|
||||
from typing import Set
|
||||
import re
|
||||
import bpy
|
||||
from bpy_extras import anim_utils
|
||||
|
||||
from bpy.types import (
|
||||
Action,
|
||||
@@ -41,6 +40,8 @@ def _find_best_slot(action: Action, object: Object) -> ActionSlot | None:
|
||||
|
||||
|
||||
def select_bones(arm_object: Object, action: Action, *, select: bool, flipped: bool) -> None:
|
||||
from bpy_extras import anim_utils
|
||||
|
||||
pose = arm_object.pose
|
||||
if not pose:
|
||||
return
|
||||
|
||||
@@ -25,7 +25,6 @@ __all__ = (
|
||||
|
||||
import bpy
|
||||
|
||||
from bpy_extras import anim_utils
|
||||
|
||||
###########################
|
||||
# General Utilities
|
||||
@@ -130,6 +129,8 @@ def RKS_ITER_selected_bones(ksi, context, ks):
|
||||
|
||||
# "Available" F-Curves.
|
||||
def RKS_GEN_available(_ksi, _context, ks, data):
|
||||
from bpy_extras import anim_utils
|
||||
|
||||
# try to get the animation data associated with the closest
|
||||
# ID-block to the data (neither of which may exist/be easy to find)
|
||||
id_block = data.id_data
|
||||
|
||||
Reference in New Issue
Block a user