Skip to content

Commit

Permalink
Assert joint parent is valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Mar 30, 2024
1 parent dd47225 commit 53796da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/refresh/models.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ static void MD5_BuildFrameSkeleton(const joint_info_t *joint_infos,
continue;
}

Q_assert(parent < num_joints);
md5_joint_t *parentJoint = &skeleton_frame[parent];

// add positions
Expand Down

0 comments on commit 53796da

Please sign in to comment.