Closed
Description
Expected Behavior
a block should have its own unique ID
Actual Behavior
when duplicate a sprite , the blocks in new sprite remain the same ID to previous
Steps to Reproduce
- create a block in current workspace
- get its ID
ID_1 = Blockly.getMainWorkspace().getTopBlocks()[0].id
- right click sprite then duplicate
- in new sprite, get new block's ID depulicated
ID_2 = Blockly.getMainWorkspace().getTopBlocks()[0].id
- test, you see
ID_2 == ID_1
Operating System and Browser
window 10