From 92e97fb93c88b26a4301b8d94fe2ecf6b3ea8f91 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 4 Sep 2024 13:47:13 -0700 Subject: [PATCH] fix: Fix compile errors when the aseprite package is installed --- .../LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs index 3a038cfb..0667fa03 100644 --- a/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs +++ b/Assets/LDtkUnity/Editor/ScriptedImporter/LDtkTilesetImporter.cs @@ -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