diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-04-16 16:06:38 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-04-16 16:07:09 +0300 |
commit | 968da083b882d51dc1daa803c8e2a3e9a25ea8ad (patch) | |
tree | 69bb036947fa923012ef862be085f2d53732a27a /rigify/rigs/chain_rigs.py | |
parent | 770b8c294775240f52dcffa6c1f4aa0d60611213 (diff) |
Fix T75285 (Rigify): allow single bone spines.super_head rigs.
Diffstat (limited to 'rigify/rigs/chain_rigs.py')
-rw-r--r-- | rigify/rigs/chain_rigs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rigify/rigs/chain_rigs.py b/rigify/rigs/chain_rigs.py index fc070eb1..525626f0 100644 --- a/rigify/rigs/chain_rigs.py +++ b/rigify/rigs/chain_rigs.py @@ -36,9 +36,11 @@ class SimpleChainRig(BaseRig): def find_org_bones(self, bone): return [bone.name] + connected_children_names(self.obj, bone.name) + min_chain_length = 2 + def initialize(self): - if len(self.bones.org) <= 1: - self.raise_error("Input to rig type must be a chain of 2 or more bones.") + if len(self.bones.org) < self.min_chain_length: + self.raise_error("Input to rig type must be a chain of {} or more bones.", self.min_chain_length) def parent_bones(self): self.rig_parent_bone = self.get_bone_parent(self.bones.org[0]) |