Skip to content

Commit

Permalink
Fix VS2022 build
Browse files Browse the repository at this point in the history
  • Loading branch information
illusion0001 authored and Lateasusual committed May 26, 2024
1 parent 6a79b80 commit c13bcaa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/blender/editors/object/object_constraint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<ID*>(obact);
userdata.dst_object = reinterpret_cast<ID*>(pose_ob);

if (cti->id_looper) {
cti->id_looper(con, con_relink_id_cb, &userdata);
Expand Down

0 comments on commit c13bcaa

Please sign in to comment.