Mix-up members after reloading python plugins

On 09/05/2015 at 04:55, xxxxxxxx wrote:

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

---------
Hi,

there is a mix up of function members in InitTool after reloading Python plugins.
If one opens c4d everything works fine, but after reloading Python plugins,
for the data member one gets the current document and vice versa.
Start c4d, write these lines into the LiquidTool class inside the liquid painter example and reload the plugin.

  
  def InitTool(self, doc, data, bt) :  
      print data, "should be a BaseContainer"  
      print doc, "should be the current document"  
      return True  

Is this a bug with the reload python plugins command?

Best wishes
Martin

On 11/05/2015 at 08:47, xxxxxxxx wrote:

Hi Martin,

I confirm this is a bug reloading ToolData plugins and InitTool() overloaded method parameters. Sorry for the inconvenience caused. This issue will be fixed.

On 11/05/2015 at 12:49, xxxxxxxx wrote:

Hello Yannick,

thanks for the confirmation.

Best wishes
Martin