From 308bbc119ad335fbadbcdda6380a0418fa6a411f Mon Sep 17 00:00:00 2001 From: manongjohn <19245851+manongjohn@users.noreply.github.com> Date: Tue, 3 Oct 2023 10:03:43 -0400 Subject: [PATCH] Fix crash exploding subscene with only audio --- toonz/sources/toonz/subscenecommand.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toonz/sources/toonz/subscenecommand.cpp b/toonz/sources/toonz/subscenecommand.cpp index 1df1c505..f683c6d1 100644 --- a/toonz/sources/toonz/subscenecommand.cpp +++ b/toonz/sources/toonz/subscenecommand.cpp @@ -973,7 +973,8 @@ std::set explode(TXsheet *xsh, TXsheet *subXsh, int index, QMap fxMap; for (auto it = fxs.constBegin(); it != fxs.constEnd(); ++it) { - setGrammerToParams(it.value().first->getParams(), grammer); + if (it.value().first) + setGrammerToParams(it.value().first->getParams(), grammer); fxMap.insert(it.key(), it.value().first); }