OpenToonz - An open-source full-featured 2D animation creation software
C
Fix the offset and thickness change when exporting ToonzVector to ToonzRaster(make it same with convert command inside OT)
Abel You521572bfe89b
diff --git a/toonz/sources/toonz/exportlevelcommand.cpp b/toonz/sources/toonz/exportlevelcommand.cppindex 88a8bf471..96e32dba3 100644--- a/toonz/sources/toonz/exportlevelcommand.cpp+++ b/toonz/sources/toonz/exportlevelcommand.cpp@@ -332,10 +332,11 @@ TToonzImageP ImageExporter::exportedToonzImage(TVectorImageP vi) {const TDimensionD &size = camera.getSize();const TDimension &res = camera.getRes();- const TPointD pos(-0.5 * size.lx, -0.5 * size.ly);+ //const TPointD pos(-0.5 * size.lx, -0.5 * size.ly);- // Render to toonz image- TToonzImageP ti = ToonzImageUtils::vectorToToonzImage(vi, aff, plt, pos, res);+ // Render to toonz image keep the same with the converter in drawingdata.cpp+ TToonzImageP ti = ToonzImageUtils::vectorToToonzImage(vi, aff, plt,+ TPointD(), res, 0 ,true);ti->setPalette(plt);if (m_opts.m_noAntialias) {diff --git a/toonz/sources/toonzlib/imagebuilders.cpp b/toonz/sources/toonzlib/imagebuilders.cppindex 12e113844..1827c3836 100644--- a/toonz/sources/toonzlib/imagebuilders.cpp+++ b/toonz/sources/toonzlib/imagebuilders.cpp@@ -327,6 +327,7 @@ TImageP ImageRasterizer::build(int imFlags, void *extData) {TScale(sx,sy),TRect(), vi->getPalette());rd.m_antiAliasing = m_antiAliasing;+ rd.m_show0ThickStrokes = Preferences::instance()->getShow0ThickLines();//Is this too slow?{@@ -400,7 +401,7 @@ TImageP ImageRasterizer::build(int imFlags, void *extData) {}}}-+ return TRasterImageP();// Error case: return a dummy image (is it really required?)TRaster32P ras(10,10);