mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Mark document as saved after exporting it so we can load its settings if we use Import Sprite Sheet then
This commit is contained in:
parent
c2c83a8d54
commit
af25d561c8
@ -307,7 +307,9 @@ Document* DocumentExporter::exportSheet()
|
||||
// Save the image files.
|
||||
if (!m_textureFilename.empty()) {
|
||||
textureDocument->setFilename(m_textureFilename.c_str());
|
||||
save_document(UIContext::instance(), textureDocument.get());
|
||||
int ret = save_document(UIContext::instance(), textureDocument.get());
|
||||
if (ret == 0)
|
||||
textureDocument->markAsSaved();
|
||||
}
|
||||
|
||||
return textureDocument.release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user