From 43ceea30f11ef71be5f996624f8ba9ba549fa0fc Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 6 Oct 2020 13:07:36 -0500 Subject: Fix T81488: Deleting an Object Constraint crashes Blender The edit_constraint_property_get function was using bone constraints in pose mode even for object constraints. This change mirrors the code in `uiTemplateConstraints` as well. Differential Revision: https://developer.blender.org/D9128 --- source/blender/editors/object/object_constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender') diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index af04c4a3263..9b8a50cfe89 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -818,7 +818,7 @@ static bConstraint *edit_constraint_property_get(bContext *C, wmOperator *op, Ob list = ED_object_pose_constraint_list(C); } else { - list = ED_object_constraint_active_list(ob); + list = &ob->constraints; } con = BKE_constraints_find_name(list, constraint_name); -- cgit v1.2.3