Grid for New Documents

So the fix in v1.2.16 caused more problems. Now I’ve fixed these problems (to be released in v1.2.16.3) but I might have found the cause of the original issue in this thread.

I’ve created a test case, where it shows a possible problem (this line):

  1. Imagine that we set the default grid to 10x10
  2. We create a new document, show the grid, and save it as .png (with the default grid settings, 10x10)
  3. The we close the document and change the default grid to 64x64
  4. After we re-open the sprite from step 2, should we see a grid of 10x10 or 64x64?

Answer: As we never specified the grid size, the saved preferences for the given sprite will not contain the grid size (now .aseprite format can contain the grid size, but imagine that we’ve saved the sprite in a .png file, so this information was lost), the sprite is expected to use the default grid size. So if we change the default grid size, after re-opening the sprite we will see the new grid size (and not the grid size visible when the sprie was saved).

This situation is a little complex, but maybe there are some parameters that should be saved “as a group”. For example: the grid or the background settings. If you change one parameter that makes the whole thing (e.g. the grid) visible in certain way, I think all values should be saved in the preferences (in this case, if we make the grid visible for a specific sprite, we should save all grid parameters, size and color, etc. for that sprite, not only the changed values; the same should be true for the background configuration, changing just one parameter should save all parameters of the background).

What do you think about this?

2 Likes