MUTATOR IF

35 views
Skip to first unread message

Eric

unread,
Apr 4, 2023, 6:11:09 AM4/4/23
to Blockly
Good morning team.

Query, I am using the 'controls_if' block, I have a problem which is that when I have for example 'else if' with blocks inside, and then I want to add more 'else if' with the gear icon, when I click on the gear, the Blocks already created in the structure 'else if.. else if..else if.. etc', are separated from where they were, why? How can I fix that?

Eric

unread,
Apr 4, 2023, 6:17:18 AM4/4/23
to Blockly
here I leave an example:

1.jpg
This is how I have the blocks, but after clicking on the gear to add more 'else if', the following happens:

2.jpg

Christopher Allen

unread,
Apr 5, 2023, 9:03:18 AM4/5/23
to blo...@googlegroups.com
Hi Eric,

Query, I am using the 'controls_if' block, I have a problem which is that when I have for example 'else if' with blocks inside, and then I want to add more 'else if' with the gear icon, when I click on the gear, the Blocks already created in the structure 'else if.. else if..else if.. etc', are separated from where they were, why? How can I fix that?

I am able to reproduce this issue in the Blockly playground, and in fact it is even stranger than you describe: when I open the mutator flyout any blocks attached to the elseif or else inputs (but not the if inputs) are moved the far side of the workspace—but they seem to remain attached, and if I drag the block (even with the mutator still open) they will snap back to their correct location.

This seems to be a bug in Blockly, and I have accordingly filed issue #6953 to track its resolution.  Follow that issue for updates.

Thanks for reporting this!


Christopher

Eric

unread,
Apr 6, 2023, 5:13:16 AM4/6/23
to Blockly
Thanks Christopher!
Reply all
Reply to author
Forward
0 new messages