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
path: root/rigify
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-06-29 20:44:05 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-06-29 20:44:05 +0300
commit89d4015cbf8e707e749e069a973abe97db6a2ed9 (patch)
treed618e34277ff51dadf408b0d211f96275d4778b7 /rigify
parentda8877fa8b295afba5a986bc710b862777fcfba3 (diff)
Rigify: small fixes.
Diffstat (limited to 'rigify')
-rw-r--r--rigify/feature_set_list.py1
-rw-r--r--rigify/rigs/chain_rigs.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/rigify/feature_set_list.py b/rigify/feature_set_list.py
index 43639fc1..0204f86a 100644
--- a/rigify/feature_set_list.py
+++ b/rigify/feature_set_list.py
@@ -21,6 +21,7 @@ from bpy.props import StringProperty
import os
import re
import importlib
+import traceback
from zipfile import ZipFile
from shutil import rmtree
diff --git a/rigify/rigs/chain_rigs.py b/rigify/rigs/chain_rigs.py
index 525626f0..9a7808dd 100644
--- a/rigify/rigs/chain_rigs.py
+++ b/rigify/rigs/chain_rigs.py
@@ -228,11 +228,12 @@ class ConnectingChainRig(TweakChainRig):
if self.use_connect_chain:
first_org = self.bones.org[0]
parent = self.rigify_parent
- parent_orgs = parent.bones.org
if not isinstance(parent, SimpleChainRig):
self.raise_error("Cannot connect to non-chain parent rig.")
+ parent_orgs = parent.bones.org
+
ok_reverse = is_same_position(self.obj, parent_orgs[0], first_org)
ok_direct = is_connected_position(self.obj, parent_orgs[-1], first_org)