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-12-22 18:27:27 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-12-22 18:52:04 +0300
commita50e8748493ac28723ce7dca502daf04de0afb0f (patch)
tree4e5d5d0ac3036ec1a760a2245480f9f8339c60e8 /rigify/generate.py
parent86e03ba498290f2f6b9ae7a29defc2b290232260 (diff)
Rigify: replace Rename To Deform with a new basic.raw_copy rig.
Add a separate rig aimed at transferring bones from the metarig completely verbatim without the ORG prefix, and remove the hacky copy_chain/super_copy option for renaming ORG to DEF. Share the constraint retargeting feature between super_copy and raw_copy.
Diffstat (limited to 'rigify/generate.py')
-rw-r--r--rigify/generate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rigify/generate.py b/rigify/generate.py
index 8e3ca0f0..0fe89175 100644
--- a/rigify/generate.py
+++ b/rigify/generate.py
@@ -287,7 +287,9 @@ class Generator(base_generate.BaseGenerator):
and prop in obj.pose.bones[bone].keys():
tar.data_path = tar.data_path[7:]
else:
- tar.data_path = 'pose.bones["%s"]["%s"]' % (make_original_name(bone), prop)
+ org_name = make_original_name(bone)
+ org_name = self.org_rename_table.get(org_name, org_name)
+ tar.data_path = 'pose.bones["%s"]["%s"]' % (org_name, prop)
def __assign_widgets(self):