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
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user