diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-09-23 13:13:25 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-09-23 17:08:14 +0300 |
commit | 51c7a854fe2ad2f1bcd0f2fe3357b6d2d4a00e32 (patch) | |
tree | 233e4ad389dbd6b89b78dc3af34a0e9f5c2b8175 /source | |
parent | bda274d1fef8774383d7e89847726e7dc7b3a9a3 (diff) |
Fix T81057: PoseBone Constraints are displayed in Object Constraints tab
Own mistake in rB9dcae4eb17d7b.
We cannot use ED_object_constraint_active_list in uiTemplateConstraints
since it is dependent on mode (pose vs. object). Now get object
constraints directly when use_bone_constraints is false.
Note: unfortunately a derivate of this bug has made its way into 2.90.1
Maniphest Tasks: T81057
Differential Revision: https://developer.blender.org/D8989
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 9d9a7e53c49..f02d1e06220 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -2051,8 +2051,8 @@ void uiTemplateConstraints(uiLayout *UNUSED(layout), bContext *C, bool use_bone_ if (use_bone_constraints) { constraints = ED_object_pose_constraint_list(C); } - else { - constraints = ED_object_constraint_active_list(ob); + else if (ob != NULL) { + constraints = &ob->constraints; } /* Switch between the bone panel ID function and the object panel ID function. */ |