fix: pass source map path to custom export callbacks by unichronic · Pull Request #4359 · mapeditor/tiled (original) (raw)
Thanks for trying to solve this, @unichronic!
Unfortunately, this leaves the API confusing because people will just expect the fileName property to return something meaningful. It also deviates the JS API from the C++ API.
And the EditableAsset::fileName change is indeed too hacky.
But what about we make this EditableAsset::fileName virtual so that we can override it for the EditableMap? For tilesets I think EditableTileset::fileName() may need to access Tileset::originalTileset.