imagicbell / ublockly

reimplementation of google blockly for Unity
http://imagicbell.github.io/unity/2017/10/11/blockly-one.html
Apache License 2.0
138 stars 52 forks source link

Blocks are not correctly deleted when a variable is deleted #43

Open anmartan opened 2 years ago

anmartan commented 2 years ago

There is a problem when the user sets the blocks like this: image

And later on they choose to delete the variable (not the variables_set block, but the variable itself), using the delete variable option from the variables_set block (like below): image

The variables_set is removed and the rest of the blocks still exist, which would seem like a normal behavior: image

But, if the user then tries to move the math block, these exceptions appear: image

This block can no longer be erased or connected to other blocks.