[Bf-extensions-cvs] [3ef6ed47] master: Fix incorrect identity comparison and logical error with 'or'

Campbell Barton noreply at git.blender.org
Thu Mar 5 02:36:55 CET 2020


Commit: 3ef6ed4773e8641e631818d732a711247a02277a
Author: Campbell Barton
Date:   Thu Mar 5 12:35:35 2020 +1100
Branches: master
https://developer.blender.org/rBA3ef6ed4773e8641e631818d732a711247a02277a

Fix incorrect identity comparison and logical error with 'or'

===================================================================

M	rigify/rigs/experimental/super_chain.py

===================================================================

diff --git a/rigify/rigs/experimental/super_chain.py b/rigify/rigs/experimental/super_chain.py
index 3f7ca5d6..346c16b8 100644
--- a/rigify/rigs/experimental/super_chain.py
+++ b/rigify/rigs/experimental/super_chain.py
@@ -558,7 +558,7 @@ class Rig:
         )
 
         invert_last = True
-        if self.params.wgt_align_axis is not 'y' or '-y':
+        if self.params.wgt_align_axis not in {'y' or '-y'}:
             invert_last = False
 
         create_chain_widget(



More information about the Bf-extensions-cvs mailing list