Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix renaming psd cell (#2416)

shun-iwasawa95e959bc619e
diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cpp
index befe825c2..4f4283652 100644
--- a/toonz/sources/toonz/xshcellviewer.cpp
+++ b/toonz/sources/toonz/xshcellviewer.cpp
@@ -828,8 +828,8 @@ void RenameCellField::renameCell() {
}
TXshLevel *xl = cell.m_level.getPointer();
- if (!xl || (xl->getType() == OVL_XSHLEVEL &&
- xl->getPath().getFrame() == TFrameId::NO_FRAME)) {
+ if (!xl || (xl->getSimpleLevel() &&
+ xl->getSimpleLevel()->getFirstFid() == TFrameId::NO_FRAME)) {
cells.append(TXshCell());
continue;
}