AddJoint results -1

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 27/10/2011 at 11:23, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   13 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
I just tried to move my Plugin from 11.5 to 13.
Sadly, now the AddJoint function does not work anymore :cry:

  
n = weightTag->AddJoint(*l);  

after this, n equals -1.
*l is a valid Joint, as a call to

(*l)->SetName("Test");

works without any problems

Sadly the documentation does not include any information why this function could return -1.

Is this a bug within the API?
Or what else could be the reason?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 28/10/2011 at 01:25, xxxxxxxx wrote:

AddJoint() can return -1 if the tag is not present in an object's tag list.
Take a look at this post and the given code sample: https://plugincafe.maxon.net/topic/5251/5246_addjoint-setweight-crash&KW=AddJoint&PID=21514#21514

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 28/10/2011 at 02:25, xxxxxxxx wrote:

Worked. Thank you very much!! :)