autotile
autotile copied to clipboard
If the plugin folder is not called 'autotile', it fails to load
This is a minor bug I found, but if for example the user copies the plugin folder directly from here as 'autotile-master' for example - it will completely fail to load.
The reason is these two lines:
var AutoTileLayer = load("res://addons/autotile/layer.gd")
var icon = load("res://addons/autotile/icon.png")
Need to be relative to the script and not to the root of the project
I think that because the script is in the same folder as the files, you should be able to simply use:
var AutoTileLayer = load("layer.gd")
var icon = load("icon.png")
But not sure if that will work in the case of addon scripts