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
This commit is contained in:
@@ -818,7 +818,7 @@ static bConstraint *edit_constraint_property_get(bContext *C, wmOperator *op, Ob
|
|||||||
list = ED_object_pose_constraint_list(C);
|
list = ED_object_pose_constraint_list(C);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
list = ED_object_constraint_active_list(ob);
|
list = &ob->constraints;
|
||||||
}
|
}
|
||||||
|
|
||||||
con = BKE_constraints_find_name(list, constraint_name);
|
con = BKE_constraints_find_name(list, constraint_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user