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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user