OpenToonz - An open-source full-featured 2D animation creation software
C
Fix(OCA): correct endTime
Abel You4ef53d7ed2e0
diff --git a/toonz/sources/toonz/ocaio.cpp b/toonz/sources/toonz/ocaio.cppindex b5dac0e70..9cd1eaa13 100644--- a/toonz/sources/toonz/ocaio.cpp+++ b/toonz/sources/toonz/ocaio.cpp@@ -330,11 +330,12 @@ void OCAData::build(ToonzScene *scene, TXsheet *xsheet, QString name,TOutputProperties *oprop = scene->getProperties()->getOutputProperties();m_startTime = 0;- m_endTime = xsheet->getFrameCount() - 1;+ m_endTime = xsheet->getFrameCount();+ // See https://oca.rxlab.guide/specs/root.html// Build a list of rowsQList<int> rows;- for (int i = m_startTime; i <= m_endTime; i++) {+ for (int i = m_startTime; i < m_endTime; i++) {rows.append(i);}