From fec298fb26c2440870a041ce103898dcd9e528e3 Mon Sep 17 00:00:00 2001 From: Jeremy Bullock Date: Apr 12 2017 17:53:47 +0000 Subject: Merge pull request #1139 from shun-iwasawa/level_placement Fix level placement when the option "Show Appendix to the Frame Number" is activated --- diff --git a/toonz/sources/toonz/filebrowserpopup.cpp b/toonz/sources/toonz/filebrowserpopup.cpp index 6ab99c7..1a2218b 100644 --- a/toonz/sources/toonz/filebrowserpopup.cpp +++ b/toonz/sources/toonz/filebrowserpopup.cpp @@ -1269,6 +1269,15 @@ void LoadLevelPopup::updateBottomGUI() { // six letters of the scene name from the level name m_levelName->setText(getLevelNameWithoutSceneNumber(fp.getName())); + // If the option "Show "ABC" Appendix to the Frame Number in Xsheet Cell" is + // ON, frame numbers normally increment at interval of 10. + // Placing such level with "Auto" step option will cause unwanted + // spacing between frames in Xsheet. Setting the step to "1" can prevent + // such problem. + if (Preferences::instance()->isShowFrameNumberWithLettersEnabled() && + m_stepCombo->currentIndex() == 0) + m_stepCombo->setCurrentIndex(1); + m_arrangementFrame->setEnabled(true); } updatePosTo();