diff options
Diffstat (limited to 'release/scripts/modules/rigify/spine_pivot_flex.py')
-rw-r--r-- | release/scripts/modules/rigify/spine_pivot_flex.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/release/scripts/modules/rigify/spine_pivot_flex.py b/release/scripts/modules/rigify/spine_pivot_flex.py index 6d01e0263eb..20935b0bc6c 100644 --- a/release/scripts/modules/rigify/spine_pivot_flex.py +++ b/release/scripts/modules/rigify/spine_pivot_flex.py @@ -304,6 +304,9 @@ def main(obj, bone_definition, base_names, options): mt_chain.update() ex_chain.update() rv_chain.update() + + # Axis locks + ex.ribcage_copy_p.lock_location = True, True, True # df.pelvis_p / DEF-wgt_pelvis con = df.pelvis_p.constraints.new('COPY_LOCATION') @@ -437,7 +440,10 @@ def main(obj, bone_definition, base_names, options): # Add bend prop prop_name = "bend_%.2d" % i prop = rna_idprop_ui_prop_get(ex.ribcage_copy_p, prop_name, create=True) - ex.ribcage_copy_p[prop_name] = 1.0 + if ("bend_%.2d" % i) in options: + ex.ribcage_copy_p[prop_name] = options["bend_%.2d" % i] + else: + ex.ribcage_copy_p[prop_name] = 1.0 prop["soft_min"] = 0.0 prop["soft_max"] = 1.0 |