OpenToonz - An open-source full-featured 2D animation creation software
C
Fix Current Frame on Load Level (#2375)
manongjohnf27af2f78bdf
diff --git a/toonz/sources/toonz/iocommand.cpp b/toonz/sources/toonz/iocommand.cppindex 2ac4e62ae..98cd2bece 100644--- a/toonz/sources/toonz/iocommand.cpp+++ b/toonz/sources/toonz/iocommand.cpp@@ -2433,10 +2433,6 @@ int IoCmd::loadResources(LoadResourceArguments &args, bool updateRecentFile,// increment the number of loaded resources++loadedCount;- // move the current column to right- col0++;- app->getCurrentColumn()->setColumnIndex(col0);-// load the image data of all frames to cache at the beginningif (cachingBehavior != ON_DEMAND) {TXshSimpleLevel *simpleLevel = xl->getSimpleLevel();@@ -2449,6 +2445,8 @@ int IoCmd::loadResources(LoadResourceArguments &args, bool updateRecentFile,}}+ if (loadedCount) app->getCurrentFrame()->setFrameIndex(row0);+sb->data().m_loadedCount += loadedCount;sb->data().m_hasSoundLevel = sb->data().m_hasSoundLevel || isSoundLevel;