diff --git a/toonz/sources/toonzqt/stageobjectsdata.cpp b/toonz/sources/toonzqt/stageobjectsdata.cpp index 4844a3a..5b83a5f 100644 --- a/toonz/sources/toonzqt/stageobjectsdata.cpp +++ b/toonz/sources/toonzqt/stageobjectsdata.cpp @@ -75,7 +75,8 @@ FxCanGenerateState canGenerate(const std::set &fxsSet, TFx *fx) { //! Returns whether the specified fx is a downstream node of the xsheet node. bool hasTerminalUpstream(TFx *fx, TFxSet *terminalFxs) { - if (TZeraryFx *zfx = dynamic_cast(fx)) + TZeraryFx *zfx = dynamic_cast(fx); + if (zfx && zfx->getColumnFx()) return hasTerminalUpstream(zfx->getColumnFx(), terminalFxs); if (terminalFxs->containsFx(fx)) return true;