OpenToonz - An open-source full-featured 2D animation creation software
C
reload psd level (#2415)
shun-iwasawa9e139b8a21f1
diff --git a/toonz/sources/toonz/levelcommand.cpp b/toonz/sources/toonz/levelcommand.cppindex bb5344be9..4ae2d12a5 100644--- a/toonz/sources/toonz/levelcommand.cpp+++ b/toonz/sources/toonz/levelcommand.cpp@@ -358,14 +358,14 @@ void revertTo(bool isCleanedUp) {/*-- Revert可能なLevelタイプの条件 --*/if ((isCleanedUp && type == TZP_XSHLEVEL) ||(!isCleanedUp && (type == TZP_XSHLEVEL || type == PLI_XSHLEVEL ||- (type == OVL_XSHLEVEL && ext != "psd")))) {+ type == OVL_XSHLEVEL))) {levels.insert(level);selectionContainLevel = true;}}if (levels.empty() || !selectionContainLevel) {DVGui::error(- QObject::tr("The Revert to Last Saved command is not supported for "+ QObject::tr("The Reload command is not supported for ""the current selection."));return;}diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cppindex 33bc36296..befe825c2 100644--- a/toonz/sources/toonz/xshcellviewer.cpp+++ b/toonz/sources/toonz/xshcellviewer.cpp@@ -137,8 +137,7 @@ bool selectionContainLevelImage(TCellSelection *selection, TXsheet *xsheet) {std::string ext = level->getPath().getType();int type = level->getType();- if (type == TZP_XSHLEVEL || type == PLI_XSHLEVEL ||- (type == OVL_XSHLEVEL && ext != "psd"))+ if (type == TZP_XSHLEVEL || type == PLI_XSHLEVEL || type == OVL_XSHLEVEL)return true;}