Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix "converted level has no palette" (toReproduce: load sequence images from OT's browser and do auto-conversion)

Abel Youfc84e150901d
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cpp
index c80c6d8a5..a95a54445 100644
--- a/toonz/sources/toonz/iocommand.cpp
+++ b/toonz/sources/toonz/iocommand.cpp
@@ -2846,7 +2846,7 @@ void IoCmd::convertNAARaster2TLV(
TApp *app = TApp::instance();
ToonzScene *scene = app->getCurrentScene()->getScene();
for (auto &rd : rds) {
- TFilePath &path = rd.m_path;
+ TFilePath path = rd.m_path;
if (path.getDots() == ".." &&
rasterExts.contains(QString::fromStdString(path.getType()).toLower())) {
if (!path.isAbsolute()) path = scene->decodeFilePath(path);
@@ -2905,7 +2905,8 @@ void IoCmd::convertNAARaster2TLV(
}
}
convertingPopup.hide();
- if (!convertingPopup.wasCanceled()) path = scene->codeFilePath(dstPath);
+ if (!convertingPopup.wasCanceled())
+ rd = LoadResourceArguments::ResourceData(dstPath);
}
}
}