mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-16 10:20:50 +00:00
Fix #1606 sprite sheet contains full path of image
This commit is contained in:
parent
3ec3f75d91
commit
ca1728fd38
@ -837,7 +837,9 @@ void DocExporter::createDataFile(const Samples& samples, std::ostream& os, Image
|
||||
<< " \"version\": \"" << VERSION << "\",\n";
|
||||
|
||||
if (!m_textureFilename.empty())
|
||||
os << " \"image\": \"" << escape_for_json(m_textureFilename).c_str() << "\",\n";
|
||||
os << " \"image\": \""
|
||||
<< escape_for_json(base::get_file_name(m_textureFilename)).c_str()
|
||||
<< "\",\n";
|
||||
|
||||
os << " \"format\": \"" << (textureImage->pixelFormat() == IMAGE_RGB ? "RGBA8888": "I8") << "\",\n"
|
||||
<< " \"size\": { "
|
||||
|
Loading…
x
Reference in New Issue
Block a user