Cleanup: remove unused imports

This commit is contained in:
Campbell Barton
2024-07-26 10:26:11 +10:00
parent 12a6cefe1a
commit b4d5c6eea5
6 changed files with 2 additions and 7 deletions

View File

@@ -40,7 +40,6 @@
#
######################################################
import struct
import sys
from string import Template # strings completion

View File

@@ -154,7 +154,6 @@ def unregister():
from . import operators
from . import properties
from . import presets
import atexit
bpy.app.handlers.version_update.remove(version_update.do_versions)

View File

@@ -28,7 +28,7 @@ import contextlib
from typing import Iterable, Optional, Union, Any, TypeAlias, Iterator
import bpy
from bpy.types import Context, Object, Operator, Panel, PoseBone, UILayout, FCurve, Camera, FModifierStepped
from bpy.types import Context, Object, Operator, Panel, PoseBone, UILayout, Camera
from mathutils import Matrix

View File

@@ -899,7 +899,7 @@ def blen_read_animations_action_item(action, item, cnodes, fps, anim_offset, glo
'Bake' loc/rot/scale into the action,
taking any pre_ and post_ matrix into account to transform from fbx into blender space.
"""
from bpy.types import Object, PoseBone, ShapeKey, Material, Camera
from bpy.types import ShapeKey, Material, Camera
fbx_curves: dict[bytes, dict[int, FBXElem]] = {}
for curves, fbxprop in cnodes.values():

View File

@@ -28,7 +28,6 @@ def set_view3d_context_override(context_override):
def prepare_sculpt_scene(context):
import bpy
from mathutils import Vector
"""
Prepare a clean state of the scene suitable for benchmarking

View File

@@ -14,8 +14,6 @@ from pxr import Sdf
import bpy
from mathutils import Matrix, Vector, Quaternion, Euler
args = None