Exemplo n.º 1
0
void BKE_pose_free_data_ex(bPose *pose, bool do_id_user)
{
	/* free pose-channels */
	BKE_pose_channels_free_ex(pose, do_id_user);

	/* free pose-groups */
	if (pose->agroups.first)
		BLI_freelistN(&pose->agroups);

	/* free IK solver state */
	BIK_clear_data(pose);

	/* free IK solver param */
	if (pose->ikparam)
		MEM_freeN(pose->ikparam);
}
Exemplo n.º 2
0
void free_pose(bPose *pose)
{
	if (pose) {
		/* free pose-channels */
		free_pose_channels(pose);
		
		/* free pose-groups */
		if (pose->agroups.first)
			BLI_freelistN(&pose->agroups);
		
		/* free IK solver state */
		BIK_clear_data(pose);
		
		/* free IK solver param */
		if (pose->ikparam)
			MEM_freeN(pose->ikparam);
		
		/* free pose */
		MEM_freeN(pose);
	}
}