spritely icon indicating copy to clipboard operation
spritely copied to clipboard

onload initialize the first sprite

Open dfirebaugh opened this issue 6 years ago • 1 comments

When we import an existing sprite sheet, we should initialize the canvas with the first image. Otherwise, you might overwrite the first sprite in the sprite sheet on accident if you don't select a sprite first.

To reproduce this issue,

  1. create some sprites
  2. save the sprite sheet by pressing ctrl+s
  3. close spritely and reopen
  4. load a spritesheet by pressing ctrl+o
  5. after loading the spritesheet click someone on the canvas

the existing sprite will be replaced with whatever is on the canvas

dfirebaugh avatar Oct 06 '20 02:10 dfirebaugh

Hi @dfirebaugh Would like to contribute to this proect. Could you please assign this issue to me?

tom-vthptvh avatar Oct 14 '20 15:10 tom-vthptvh