Skip to content

PermissionError when filling 0th tile in incomplete matrix #9

@heynicejacket

Description

@heynicejacket

If the 0th tile space in an incomplete tile matrix is empty and to be filled in with a filler tile, restructure_layer_matrix() throws a permission error.

For example, in the tile matrix below, empty tile spaces are represented by dashes.

- - 2
3 4 5
6 7 -

In this instance, if tile 5 is to be the filler tile for spaces 0, 1, 8, a permission error occurs.

The offending line is:

os.rename(tile_path + tile, tile_path + layer_name + t + '.png')

Temporary solution is to place your filler tile in the 0th position, as there should be no reason you couldn't place the filler tile in that space, if admittedly inconvenient to reset your artboards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions