Refactor: lazy import anim_utils from bpy_extras

Import `anim_utils` from `bpy_extras` in a lazy way, instead of at the top
of the module. This will improve load times of Blender.

No functional changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/147215
This commit is contained in:
Sybren A. Stüvel
2025-10-02 17:00:13 +02:00
parent 84af3e8b47
commit 8d417cb280
5 changed files with 10 additions and 6 deletions

View File

@@ -16,8 +16,6 @@ import sys
import bpy
from bpy_extras import anim_utils
IS_TESTING = False
@@ -153,6 +151,7 @@ def update_data_paths(rna_update, log=sys.stdout):
and options is an opaque data.
class_name, fcurve and options may be None!
"""
from bpy_extras import anim_utils
rna_update_from_map = {}
for ren_class, ren_from, ren_to, options in rna_update: