diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-22 18:13:13 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-22 19:24:10 +0300 |
commit | 816407649aedfaa7836e3aca7629842db732e279 (patch) | |
tree | 201c08308821382d6847f10a0c03902faeb88870 /rigify/rigs | |
parent | 0e0e8de0de6022c23729e2d139b9aa47324d7122 (diff) |
Rigify: More updates for 2.8 API
With those changes the addon is working in some functional state.
Thus I'm bumping its version to 2.80.
TODOS:
* Handle collections (put all the new objects in a collection).
* We should also replace the old WGT_LAYERS with subcollections.
* Move toolshelf operators out of there (make tools or move to sidebar).
Diffstat (limited to 'rigify/rigs')
-rw-r--r-- | rigify/rigs/experimental/super_chain.py | 4 | ||||
-rw-r--r-- | rigify/rigs/limbs/limb_utils.py | 4 | ||||
-rw-r--r-- | rigify/rigs/spines/super_spine.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/rigify/rigs/experimental/super_chain.py b/rigify/rigs/experimental/super_chain.py index 408bce3f..2b2c472b 100644 --- a/rigify/rigs/experimental/super_chain.py +++ b/rigify/rigs/experimental/super_chain.py @@ -115,11 +115,11 @@ class Rig: setattr(v,axis,scale) if reverse: - tail_vec = v * self.obj.matrix_world + tail_vec = v @ self.obj.matrix_world eb.head[:] = eb.tail eb.tail[:] = eb.head + tail_vec else: - tail_vec = v * self.obj.matrix_world + tail_vec = v @ self.obj.matrix_world eb.tail[:] = eb.head + tail_vec def create_pivot(self, bones=None, pivot=None): diff --git a/rigify/rigs/limbs/limb_utils.py b/rigify/rigs/limbs/limb_utils.py index 80588516..609da256 100644 --- a/rigify/rigs/limbs/limb_utils.py +++ b/rigify/rigs/limbs/limb_utils.py @@ -11,11 +11,11 @@ def orient_bone( cls, eb, axis, scale = 1.0, reverse = False ): setattr(v,axis,scale) if reverse: - tail_vec = v * cls.obj.matrix_world + tail_vec = v @ cls.obj.matrix_world eb.head[:] = eb.tail eb.tail[:] = eb.head + tail_vec else: - tail_vec = v * cls.obj.matrix_world + tail_vec = v @ cls.obj.matrix_world eb.tail[:] = eb.head + tail_vec eb.roll = 0.0 diff --git a/rigify/rigs/spines/super_spine.py b/rigify/rigs/spines/super_spine.py index 115d0450..6d28de69 100644 --- a/rigify/rigs/spines/super_spine.py +++ b/rigify/rigs/spines/super_spine.py @@ -123,11 +123,11 @@ class Rig: setattr(v, axis, scale) if reverse: - tail_vec = v * self.obj.matrix_world + tail_vec = v @ self.obj.matrix_world eb.head[:] = eb.tail eb.tail[:] = eb.head + tail_vec else: - tail_vec = v * self.obj.matrix_world + tail_vec = v @ self.obj.matrix_world eb.tail[:] = eb.head + tail_vec def create_pivot(self, pivot): |