Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-09-15 11:30:26 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-09-15 11:30:39 +0300
commit9a9923dd278703f05206037a31b4226b337d8448 (patch)
treefc6cca9917b86bc7eaa260ed41b4206caf4abbe8 /rigify/rigs
parentf31572ecd2ef3b0cb08c175ed8343a97af01dc9c (diff)
Rigify: replace deprecated use_inherit_scale and use_offset properties.
Diffstat (limited to 'rigify/rigs')
-rw-r--r--rigify/rigs/experimental/super_chain.py8
-rw-r--r--rigify/rigs/faces/super_face.py2
-rw-r--r--rigify/rigs/limbs/simple_tentacle.py2
-rw-r--r--rigify/rigs/limbs/super_palm.py2
-rw-r--r--rigify/rigs/spines/basic_tail.py2
-rw-r--r--rigify/rigs/spines/super_head.py2
6 files changed, 9 insertions, 9 deletions
diff --git a/rigify/rigs/experimental/super_chain.py b/rigify/rigs/experimental/super_chain.py
index fd6569c1..9c34478d 100644
--- a/rigify/rigs/experimental/super_chain.py
+++ b/rigify/rigs/experimental/super_chain.py
@@ -303,15 +303,15 @@ class Rig:
for i, twk in enumerate(bones['chain']['tweak']):
eb[twk].parent = eb[bones['chain']['mch_ctrl'][i+1]]
- eb[twk].use_inherit_scale = False
+ eb[twk].inherit_scale = 'NONE'
eb[bones['chain']['ctrl'][0]].parent = eb[bones['chain']['mch_ctrl'][0]] if bones['chain']['mch_ctrl'] else None
- eb[bones['chain']['ctrl'][0]].use_inherit_scale = False
+ eb[bones['chain']['ctrl'][0]].inherit_scale = 'NONE'
eb[bones['chain']['ctrl'][1]].parent = eb[bones['chain']['mch_ctrl'][-1]] if bones['chain']['mch_ctrl'] else None
- eb[bones['chain']['ctrl'][1]].use_inherit_scale = False
+ eb[bones['chain']['ctrl'][1]].inherit_scale = 'NONE'
if 'pivot' in bones.keys():
- eb[bones['pivot']['ctrl']].use_inherit_scale = False
+ eb[bones['pivot']['ctrl']].inherit_scale = 'NONE'
for i, mch in enumerate(bones['chain']['mch']):
if mch == bones['chain']['mch'][0]:
diff --git a/rigify/rigs/faces/super_face.py b/rigify/rigs/faces/super_face.py
index 4eda647d..e482a7db 100644
--- a/rigify/rigs/faces/super_face.py
+++ b/rigify/rigs/faces/super_face.py
@@ -716,7 +716,7 @@ class Rig:
const = owner_pb.constraints.new( 'COPY_ROTATION' )
const.target = self.obj
const.subtarget = subtarget
- const.use_offset = True
+ const.mix_mode = 'OFFSET'
const.target_space = 'LOCAL'
const.owner_space = 'LOCAL'
diff --git a/rigify/rigs/limbs/simple_tentacle.py b/rigify/rigs/limbs/simple_tentacle.py
index ea5a2224..10bdd2b5 100644
--- a/rigify/rigs/limbs/simple_tentacle.py
+++ b/rigify/rigs/limbs/simple_tentacle.py
@@ -74,7 +74,7 @@ class Rig(TweakChainRig):
self.make_constraint(
ctrl, 'COPY_ROTATION', prev_ctrl,
use_xyz=self.copy_rotation_axes,
- space='LOCAL', use_offset=True
+ space='LOCAL', mix_mode='BEFORE',
)
# Widgets
diff --git a/rigify/rigs/limbs/super_palm.py b/rigify/rigs/limbs/super_palm.py
index 127d9d0c..8cde6648 100644
--- a/rigify/rigs/limbs/super_palm.py
+++ b/rigify/rigs/limbs/super_palm.py
@@ -110,7 +110,7 @@ class Rig:
# turn off inherit scale for all ORG-bones to prevent undesired transformations
for o in self.org_bones:
- eb[o].use_inherit_scale = False
+ eb[o].inherit_scale = 'NONE'
for d, b in zip(def_bones, self.org_bones):
eb[d].use_connect = False
diff --git a/rigify/rigs/spines/basic_tail.py b/rigify/rigs/spines/basic_tail.py
index 6697858c..845c3ca3 100644
--- a/rigify/rigs/spines/basic_tail.py
+++ b/rigify/rigs/spines/basic_tail.py
@@ -90,7 +90,7 @@ class Rig(BaseHeadTailRig):
self.make_constraint(
ctrl, 'COPY_ROTATION', prev_ctrl,
use_xyz=self.copy_rotation_axes,
- space='LOCAL', use_offset=True
+ space='LOCAL', mix_mode='BEFORE',
)
# Widgets
diff --git a/rigify/rigs/spines/super_head.py b/rigify/rigs/spines/super_head.py
index 79ec2396..de25113a 100644
--- a/rigify/rigs/spines/super_head.py
+++ b/rigify/rigs/spines/super_head.py
@@ -257,7 +257,7 @@ class Rig(BaseHeadTailRig):
mch = self.bones.mch
for bone in mch.chain:
self.set_bone_parent(bone, mch.stretch)
- self.get_bone(bone).use_inherit_scale = False
+ self.get_bone(bone).inherit_scale = 'NONE'
@stage.rig_bones
def rig_mch_chain(self):