diff --git a/source/blender/editors/object/object_constraint.cc b/source/blender/editors/object/object_constraint.cc index acfeefb954a..4d51f90f1b2 100644 --- a/source/blender/editors/object/object_constraint.cc +++ b/source/blender/editors/object/object_constraint.cc @@ -2290,10 +2290,9 @@ static int pose_constraints_merge_exec(bContext *C, wmOperator *op) num_cons += 1; const bConstraintTypeInfo *cti = BKE_constraint_typeinfo_get(con); - struct IDRelinkUserData userdata = { - .src_object = (ID *) obact, - .dst_object = (ID *) pose_ob, - }; + struct IDRelinkUserData userdata{}; + userdata.src_object = reinterpret_cast(obact); + userdata.dst_object = reinterpret_cast(pose_ob); if (cti->id_looper) { cti->id_looper(con, con_relink_id_cb, &userdata);