Fix incorrect identity comparison and logical error with 'or'

This commit is contained in:
Campbell Barton 2020-03-05 12:35:35 +11:00
parent aec5a36c12
commit 3ef6ed4773
Notes: blender-bot 2023-02-14 18:07:04 +01:00
Referenced by commit 7861d837: Rigify: fix logical error from 3ef6ed4773
Referenced by commit 7861d837, Rigify: fix logical error from 3ef6ed4773
1 changed files with 1 additions and 1 deletions

View File

@ -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(