diff options
Diffstat (limited to 'rigify/legacy/rigs/pitchipoy/super_torso_turbo.py')
-rw-r--r-- | rigify/legacy/rigs/pitchipoy/super_torso_turbo.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py b/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py index d9645adb..706b82cf 100644 --- a/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py +++ b/rigify/legacy/rigs/pitchipoy/super_torso_turbo.py @@ -4,7 +4,8 @@ from ...utils import copy_bone, flip_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 MetarigError, make_mechanism_name, create_cube_widget -from rna_prop_ui import rna_idprop_ui_prop_get + +from ....utils.mechanism import make_property script = """ controls = [%s] @@ -518,16 +519,11 @@ class Rig: for prop in props: if prop == 'neck_follow': - torso[prop] = 0.5 + defval = 0.5 else: - torso[prop] = 0.0 - - prop = rna_idprop_ui_prop_get( torso, prop, create=True ) - prop["min"] = 0.0 - prop["max"] = 1.0 - prop["soft_min"] = 0.0 - prop["soft_max"] = 1.0 - prop["description"] = prop + defval = 0.0 + + make_property(torso, prop, defval) # driving the follow rotation switches for neck and head for bone, prop, in zip( owners, props ): |