DESCFLAGS_DESC_RECURSIONLOCK [SOLVED]



  • On 09/02/2015 at 05:22, xxxxxxxx wrote:

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

    ---------
    Hi,

    I would like to know what

    DESCFLAGS_DESC_RECURSIONLOCK
    

    is actually doing or used for? It is probably somehow flagging recursive calls to the description loading routine but when is this flag usually passed along and when is a plugin supposed to set the flag in GetDDescription() alongside DESCFLAGS_DESC_LOADED? Always? Or only in certain situations?

    I would really like to understand what this flag is all about (the sdk docs describe it as private but it seems to me that this could be quite a crucial flag when dealing with inherited description types)

    Thanks
    Best
    Samir



  • On 09/02/2015 at 20:50, xxxxxxxx wrote:

    Hi Samir,

    That value is used in very specific cases internally.  It's when the GetDDescription() call has to call the node's GetDescription() call but doesn't want to get stuck in a recursive loop, and the function it calls breaks out of it if detected.  It's not for plugin developers to ever use, that's why it's marked private.  Please do not attempt to use it, it will probably only lead to malfunctions for your code anyway.

    Joey Gaspe
    SDK Support Engineer



  • On 10/02/2015 at 00:54, xxxxxxxx wrote:

    Ah I see. Thanks Joey! That covers it.



  • On 10/02/2015 at 09:40, xxxxxxxx wrote:

    Hi Katachi,

    Thanks for letting me know, I'll close this topic as solved.

    Joey Gaspe
    SDK Support Engineer


Log in to reply