I have a plugin for Sketchup that is used by clients, and because this I need to Scrambler it to create a .rbs file. When the file is .rb, works perfectly, but when I scramble it to .rbs, the plugin crashes the Sketchup on Startup. Anyone know these problem?

有帮助吗?

解决方案

I had this problem once, my plugin.rb checked if webdialog was already created before you created there again.

if mywebdialog.nil?;
     mywebdialog = UI :: WebDialog.new ("" ......

This code works in sketchup when it is .rb when it encrypts with Scramble .rbs it gives an error that is triggered BugSplat ... al checks in your code is not doing it.

Remove the "if mywebdialog.nil?;" And test again!

其他提示

Check if the webDialog is created before create another one.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top