Skip to content

Duplicate a sprite , the blocks in new sprite remain the same id to previous #4573

Closed
@TheWindX

Description

@TheWindX

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

  1. create a block in current workspace
  2. get its ID
    ID_1 = Blockly.getMainWorkspace().getTopBlocks()[0].id
  3. right click sprite then duplicate
  4. in new sprite, get new block's ID depulicated
    ID_2 = Blockly.getMainWorkspace().getTopBlocks()[0].id
  5. test, you see
    ID_2 == ID_1

Operating System and Browser

window 10

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions