MessageDialog in SetName() bug



  • On 13/04/2015 at 09:23, xxxxxxxx wrote:

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

    ---------
    When I open up a MessageDialog in TreeViewFunctions.SetName(), the function will be called one more time with the same parameters. Tested in R14 and R16 in Python, I guess its the same in C++.



  • On 14/04/2015 at 06:28, xxxxxxxx wrote:

    Hi Niklas,

    I'm not sure I understand the actual problem correctly.
    Can you provide me with some code, demonstrating the issue?



  • On 14/04/2015 at 07:03, xxxxxxxx wrote:

    Hi Andreas,

    sorry I currently don't have the time to set up a complete example. If you have access to a plugin
    that uses a Tree View and implements a TreeViewFunctions subclass, try calling MessageDialog()
    inside its SetName() method. You will see that when you rename an element in the TreeView and
    the dialog pops up, it will pop up just another time because SetName() is called again.

    SetName() will be called only once (as expected) if you don't call MessageDialog() inside of it.

    Best,
    Niklas



  • On 14/04/2015 at 07:25, xxxxxxxx wrote:

    Hi,

    I only had a C++ plugin to test with, but I can confirm the described behavior.
    We'll need to look into this. Thanks for pointing this out.


Log in to reply