diff options
author | Demeter Dzadik <Mets> | 2020-06-25 13:30:01 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-06-25 13:34:29 +0300 |
commit | 81ed542cead8626fee4f9ec478c67a71c2e1bf05 (patch) | |
tree | 6075a84bac0b386304ff4ed8c836bdc006763c25 /rigify/legacy | |
parent | 0e9e40f5e438b27ebfa1d5931a6bc9250557b57e (diff) |
Rigify: Clean up imports
Just removing some unused imports.
I tested generating every built-in metarig to make sure I didn't remove any imports that were actually used. I also tested installing and using a feature-set.
Reviewed By: angavrilov
Differential Revision: https://developer.blender.org/D8026
Diffstat (limited to 'rigify/legacy')
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/limbs/arm.py | 6 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/limbs/leg.py | 7 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/limbs/paw.py | 7 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/limbs/super_limb.py | 6 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/simple_tentacle.py | 5 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/super_face.py | 3 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/super_finger.py | 4 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/super_torso_turbo.py | 4 | ||||
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/super_widgets.py | 3 |
9 files changed, 16 insertions, 29 deletions
diff --git a/rigify/legacy/rigs/pitchipoy/limbs/arm.py b/rigify/legacy/rigs/pitchipoy/limbs/arm.py index 2bf0fe6f..2c68c2c0 100644 --- a/rigify/legacy/rigs/pitchipoy/limbs/arm.py +++ b/rigify/legacy/rigs/pitchipoy/limbs/arm.py @@ -18,10 +18,8 @@ # <pep8 compliant> import bpy -from ....utils import MetarigError -from ....utils import create_widget, copy_bone -from ....utils import strip_org -from .limb_utils import * +from ....utils import copy_bone +from .limb_utils import get_bone_name, make_constraint from ..super_widgets import create_hand_widget from .....utils.mechanism import make_property diff --git a/rigify/legacy/rigs/pitchipoy/limbs/leg.py b/rigify/legacy/rigs/pitchipoy/limbs/leg.py index 360a2a49..9abf956f 100644 --- a/rigify/legacy/rigs/pitchipoy/limbs/leg.py +++ b/rigify/legacy/rigs/pitchipoy/limbs/leg.py @@ -18,12 +18,11 @@ # <pep8 compliant> import bpy, math -from ....utils import MetarigError, connected_children_names -from ....utils import create_widget, copy_bone, create_circle_widget -from ....utils import strip_org, flip_bone, put_bone +from ....utils import connected_children_names, create_circle_widget +from ....utils import copy_bone, flip_bone, put_bone from rna_prop_ui import rna_idprop_ui_prop_get from ..super_widgets import create_foot_widget, create_ballsocket_widget -from .limb_utils import * +from .limb_utils import orient_bone, make_constraint, get_bone_name from .....utils.mechanism import make_property diff --git a/rigify/legacy/rigs/pitchipoy/limbs/paw.py b/rigify/legacy/rigs/pitchipoy/limbs/paw.py index dd9fa1e7..2fdb56f7 100644 --- a/rigify/legacy/rigs/pitchipoy/limbs/paw.py +++ b/rigify/legacy/rigs/pitchipoy/limbs/paw.py @@ -18,12 +18,11 @@ # <pep8 compliant> import bpy -from ....utils import MetarigError, connected_children_names -from ....utils import create_widget, copy_bone, create_circle_widget -from ....utils import strip_org, flip_bone +from ....utils import connected_children_names, create_circle_widget +from ....utils import copy_bone, flip_bone from rna_prop_ui import rna_idprop_ui_prop_get from ..super_widgets import create_foot_widget, create_ballsocket_widget -from .limb_utils import * +from .limb_utils import orient_bone, make_constraint, get_bone_name from .....utils.mechanism import make_property diff --git a/rigify/legacy/rigs/pitchipoy/limbs/super_limb.py b/rigify/legacy/rigs/pitchipoy/limbs/super_limb.py index 5852ad46..daedbaca 100644 --- a/rigify/legacy/rigs/pitchipoy/limbs/super_limb.py +++ b/rigify/legacy/rigs/pitchipoy/limbs/super_limb.py @@ -3,12 +3,10 @@ from .arm import create_arm from .leg import create_leg from .paw import create_paw from .ui import create_script -from .limb_utils import * +from .limb_utils import orient_bone, make_constraint, get_bone_name from mathutils import Vector -from ....utils import copy_bone, flip_bone, put_bone, create_cube_widget -from ....utils import strip_org, make_deformer_name, create_widget +from ....utils import copy_bone, put_bone, strip_org from ....utils import create_circle_widget, create_sphere_widget -from ....utils import MetarigError, make_mechanism_name, org from ....utils import create_limb_widget, connected_children_names from ..super_widgets import create_ikarrow_widget from math import trunc diff --git a/rigify/legacy/rigs/pitchipoy/simple_tentacle.py b/rigify/legacy/rigs/pitchipoy/simple_tentacle.py index facb2b90..46166db9 100644 --- a/rigify/legacy/rigs/pitchipoy/simple_tentacle.py +++ b/rigify/legacy/rigs/pitchipoy/simple_tentacle.py @@ -1,10 +1,9 @@ import bpy from ...utils import copy_bone from ...utils import strip_org, make_deformer_name, connected_children_names -from ...utils import make_mechanism_name, put_bone, create_sphere_widget -from ...utils import create_widget, create_circle_widget +from ...utils import put_bone, create_sphere_widget +from ...utils import create_circle_widget from ...utils import MetarigError -from rna_prop_ui import rna_idprop_ui_prop_get class Rig: diff --git a/rigify/legacy/rigs/pitchipoy/super_face.py b/rigify/legacy/rigs/pitchipoy/super_face.py index 5a46299a..45347060 100644 --- a/rigify/legacy/rigs/pitchipoy/super_face.py +++ b/rigify/legacy/rigs/pitchipoy/super_face.py @@ -2,8 +2,7 @@ import bpy, re from mathutils import Vector from ...utils import copy_bone, flip_bone from ...utils import org, strip_org, make_deformer_name, connected_children_names, make_mechanism_name -from ...utils import create_circle_widget, create_sphere_widget, create_widget, create_cube_widget -from ...utils import MetarigError +from ...utils import create_widget from .super_widgets import create_face_widget, create_eye_widget, create_eyes_widget, create_ear_widget, create_jaw_widget, create_teeth_widget from ....utils.mechanism import make_property diff --git a/rigify/legacy/rigs/pitchipoy/super_finger.py b/rigify/legacy/rigs/pitchipoy/super_finger.py index a1b7a506..05c32829 100644 --- a/rigify/legacy/rigs/pitchipoy/super_finger.py +++ b/rigify/legacy/rigs/pitchipoy/super_finger.py @@ -1,9 +1,7 @@ import bpy -from mathutils import Vector from ...utils import copy_bone, flip_bone from ...utils import strip_org, make_deformer_name, connected_children_names, make_mechanism_name -from ...utils import create_circle_widget, create_sphere_widget, create_widget -from ...utils import MetarigError +from ...utils import MetarigError, create_circle_widget, create_widget from ....utils.mechanism import make_property diff --git a/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py b/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py index 05c2b4c6..08d06a03 100644 --- a/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py +++ b/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py @@ -1,8 +1,8 @@ import bpy from mathutils import Vector -from ...utils import copy_bone, flip_bone, put_bone, org +from ...utils import copy_bone, put_bone, org from ...utils import strip_org, make_deformer_name, connected_children_names -from ...utils import create_circle_widget, create_sphere_widget, create_widget +from ...utils import create_circle_widget, create_sphere_widget from ...utils import MetarigError, make_mechanism_name, create_cube_widget from ....utils.mechanism import make_property diff --git a/rigify/legacy/rigs/pitchipoy/super_widgets.py b/rigify/legacy/rigs/pitchipoy/super_widgets.py index f442c590..fabc800b 100644 --- a/rigify/legacy/rigs/pitchipoy/super_widgets.py +++ b/rigify/legacy/rigs/pitchipoy/super_widgets.py @@ -1,6 +1,3 @@ -import bpy -import importlib -import importlib from ...utils import create_widget MODULE_NAME = "super_widgets" # Windows/Mac blender is weird, so __package__ doesn't work |