diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-15 11:45:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-15 11:45:21 +0300 |
commit | 41b289be30021b8fc63031aba701065f1c40ed47 (patch) | |
tree | 66d4d132d33ac75c4aef5d748418420f7929a2b3 /release | |
parent | f29b80ff79ec7c6a2532d0b0eb5841d00cc7af1b (diff) |
Cleanup: unused imports
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bl_app_override/helpers.py | 1 | ||||
-rw-r--r-- | release/scripts/modules/bpy_extras/mesh_utils.py | 1 | ||||
-rw-r--r-- | release/scripts/modules/rna_info.py | 3 | ||||
-rw-r--r-- | release/scripts/templates_py/ui_tool_simple.py | 1 |
4 files changed, 1 insertions, 5 deletions
diff --git a/release/scripts/modules/bl_app_override/helpers.py b/release/scripts/modules/bl_app_override/helpers.py index 981039e8ddc..a6f67f2d435 100644 --- a/release/scripts/modules/bl_app_override/helpers.py +++ b/release/scripts/modules/bl_app_override/helpers.py @@ -100,7 +100,6 @@ class AppOverrideState: def _setup_addons(self): import sys - import os sys_path = [] if self.addon_paths is not None: diff --git a/release/scripts/modules/bpy_extras/mesh_utils.py b/release/scripts/modules/bpy_extras/mesh_utils.py index e76d1f1815e..98ddc731028 100644 --- a/release/scripts/modules/bpy_extras/mesh_utils.py +++ b/release/scripts/modules/bpy_extras/mesh_utils.py @@ -443,7 +443,6 @@ def triangle_random_points(num_points, loop_triangles): """ from random import random - from mathutils.geometry import area_tri # For each triangle, generate the required number of random points sampled_points = [None] * (num_points * len(loop_triangles)) diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index 4a2b1085143..6f51dcf3aeb 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -756,8 +756,7 @@ def BuildRNAInfo(): def main(): - import rna_info - struct = rna_info.BuildRNAInfo()[0] + struct = BuildRNAInfo()[0] data = [] for _struct_id, v in sorted(struct.items()): struct_id_str = v.identifier # "".join(sid for sid in struct_id if struct_id) diff --git a/release/scripts/templates_py/ui_tool_simple.py b/release/scripts/templates_py/ui_tool_simple.py index 9cd71d0160c..afda5088e69 100644 --- a/release/scripts/templates_py/ui_tool_simple.py +++ b/release/scripts/templates_py/ui_tool_simple.py @@ -1,7 +1,6 @@ # This example adds an object mode tool to the toolbar. # This is just the circle-select and lasso tools tool. import bpy -from bpy.utils.toolsystem import ToolDef from bpy.types import WorkSpaceTool class MyTool(WorkSpaceTool): |