From 236e00c2eefa8491808017893770c55848383afe Mon Sep 17 00:00:00 2001 From: manongjohn Date: Fri, 5 Feb 2021 16:33:07 -0500 Subject: [PATCH] Hide global set keys when no skeleton created --- toonz/sources/tnztools/plastictool_animate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toonz/sources/tnztools/plastictool_animate.cpp b/toonz/sources/tnztools/plastictool_animate.cpp index 465af7f4..b61e8d36 100644 --- a/toonz/sources/tnztools/plastictool_animate.cpp +++ b/toonz/sources/tnztools/plastictool_animate.cpp @@ -188,6 +188,8 @@ void PlasticTool::leftButtonUp_animate(const TPointD &pos, void PlasticTool::addContextMenuActions_animate(QMenu *menu) { bool ret = true; + if (m_sd.getPointer() == nullptr) return; + if (!m_svSel.isEmpty()) { QAction *setKey = menu->addAction(tr("Set Key")); ret = ret && connect(setKey, SIGNAL(triggered()), &l_plasticTool,