Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-10-06 21:07:36 +0300
committerHans Goudey <h.goudey@me.com>2020-10-06 21:07:36 +0300
commit43ceea30f11ef71be5f996624f8ba9ba549fa0fc (patch)
tree88db9358592efcb998366351a90e967a71e1982f /source/blender/editors/object/object_constraint.c
parent55fd7f55bd184851b321152d61cf9bc8b70cef44 (diff)
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
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r--source/blender/editors/object/object_constraint.c2
1 files changed, 1 insertions, 1 deletions
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);