Skip to content

Commit

Permalink
fix: Fix compile errors when the aseprite package is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Sep 4, 2024
1 parent ea295c4 commit 92e97fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ private bool CacheTextureImporterOrAsepriteImporter()
if (LDtkRelativeGetterTilesetTexture.IsAsepriteAsset(texturePath))
{
#if LDTK_UNITY_ASEPRITE && UNITY_2021_3_OR_NEWER
_srcAsepriteImporter = (AsepriteImporter)GetAtPath(path);
_srcAsepriteImporter = (AsepriteImporter)GetAtPath(texturePath);
if (_srcAsepriteImporter == null)
{
Logger.LogError($"Tried to build tileset {AssetName}, but the aseprite importer was not found at \"{path}\". Is this tileset asset in a folder relative to the LDtk project file? Ensure that it's relativity is maintained if the project was moved also.");
Logger.LogError($"Tried to build tileset {AssetName}, but the aseprite importer was not found at \"{texturePath}\". Is this tileset asset in a folder relative to the LDtk project file? Ensure that it's relativity is maintained if the project was moved also.");
return false;
}
#else
Expand Down

0 comments on commit 92e97fb

Please sign in to comment.