THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/10/2010 at 17:39, xxxxxxxx wrote:
Ok, I imported a good file with joints created by Cinema4D into Melange, and I got a good joint listing.
Just to test it out, I called RemoveJoint(), but I don't think it got removed. I immediately called
GetJointCount() afterwards, and the joint count did not change.
And I tried re-adding it again, but it just returned the same index as the original, as if the joint
was never removed.
for (i=0; i < joint_count; i++) {
BaseObject *joint_ob = wt->GetJoint( i, doc );
printf("GetJointCount before: %d\n", wt->GetJointCount() ); // same count
wt->RemoveJoint(joint_ob); // not removed!
printf("GetJointCount after: %d\n", wt->GetJointCount() ); // same count
LONG joint_index = wt->AddJoint( joint_ob );
printf("joint_index: %d\n", joint_index ); // same index as original joint
}
I definitely think there's something wrong here if I can't remove joints from the list.