SetAction runs Brush tool data



  • On 01/03/2017 at 07:51, xxxxxxxx wrote:

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

    ---------
    Hello.

    In my DescriptionToolData plugin, whenever I call doc->SetAction(MY_TOOL_DATA_PLUGIN_ID), the brush description is loaded. In GetDDescription, this is the only line of code:

    return DescriptionToolData::GetDDescription(doc, data, description, flags);
    

    Nevertheless, whenever I call my tooldata from menu "plugins ", its description is displayed fine.

    Any idea what goes wrong ?

    Thank you.



  • On 02/03/2017 at 03:21, xxxxxxxx wrote:

    Hi,

    BaseDocument::SetAction() has a weird behavior. But the issue doesn't depend on the implementation of DescriptionToolData::GetDDescription().

    Does SetAction() show the brush description even after your DescriptionToolData plugin has been open from the plugins menu?


Log in to reply