[Bf-blender-cvs] [43ceea30f11] master: Fix T81488: Deleting an Object Constraint crashes Blender

Hans Goudey noreply at git.blender.org
Tue Oct 6 20:07:45 CEST 2020


Commit: 43ceea30f11ef71be5f996624f8ba9ba549fa0fc
Author: Hans Goudey
Date:   Tue Oct 6 13:07:36 2020 -0500
Branches: master
https://developer.blender.org/rB43ceea30f11ef71be5f996624f8ba9ba549fa0fc

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

===================================================================

M	source/blender/editors/object/object_constraint.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list