bartbutenaers / node-red-contrib-blockly

A Node Red node for visual programming a function using Blockly
Apache License 2.0
89 stars 22 forks source link

Gear icon on case block produces weird result #66

Closed cymplecy closed 3 years ago

cymplecy commented 3 years ago

image

bartbutenaers commented 3 years ago

No more bugs for me today, only fun stuff :-) No kidding...

jsccjj commented 3 years ago

Got the same thing. Found the fix. This is caused by the latest Blockly since it no longer supported Blockly.Block.Obtain method. Use "workspace.newBlock" instead like below

image

Then I got below: image

bartbutenaers commented 3 years ago

@jsccjj Nice detective work... Thanks again!!

bartbutenaers commented 3 years ago

Hi @cymplecy, I have implemented the fix offered by @jsccjj, and now it indeed seems to work fine again. Please close this issue if it is solved for you.

cymplecy commented 3 years ago

Works for me image