Do you want to work on this issue?
You can request for a bounty in order to promote it!
Scripting: TileLayerEdit.setTile() is affected by current selection #3482
eishiya posted onGitHub
If the current map has any tiles selected, TileLayerEdit.setTile()
will only work within the selection, and will not change any tiles outside the selection. This means that it is necessary to clear the user's selection when it isn't relevant to the script's action. Scripts should not have to do that.
I expect setTile()
to set the tile, nothing more, nothing less. Its documentation does not state anything else. It also ignores layer lock status, as it should! It should be up to scripts to respect restrictions like locks and selections.
That said, a version of setTile()
that does automatically respect selections (and layer locks!) could be convenient too, as a separate function that returns true
when it set the tile and false
when it did not.