mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-25 08:22:15 +00:00
Fix/textureatlas import error (#1017)
* Ensure that location of PNG is resolved relative to the JSON file directory in TexturePacker processor * Bump version to 5.0.2 * Update tests
This commit is contained in:
+3
-3
@@ -8,9 +8,9 @@ using MonoGame.Extended.Content.TexturePacker;
|
||||
namespace MonoGame.Extended.Content.Pipeline.TextureAtlases
|
||||
{
|
||||
[ContentImporter(".json", DefaultProcessor = "TexturePackerProcessor", DisplayName = "TexturePacker JSON Importer - MonoGame.Extended")]
|
||||
public class TexturePackerJsonImporter : ContentImporter<TexturePackerFileContent>
|
||||
public class TexturePackerJsonImporter : ContentImporter<ContentImporterResult<TexturePackerFileContent>>
|
||||
{
|
||||
public override TexturePackerFileContent Import(string filename, ContentImporterContext context)
|
||||
public override ContentImporterResult<TexturePackerFileContent> Import(string filename, ContentImporterContext context)
|
||||
{
|
||||
var tpFile = TexturePackerFileReader.Read(filename);
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace MonoGame.Extended.Content.Pipeline.TextureAtlases
|
||||
}
|
||||
}
|
||||
|
||||
return tpFile;
|
||||
return new ContentImporterResult<TexturePackerFileContent>(filename, tpFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user