Merge pull request #574 from manongjohn/fix_setkeys_with_no_skeleton

Hide global set keys when no skeleton created
This commit is contained in:
manongjohn 2021-02-11 08:08:22 -05:00 committed by GitHub
commit f9d0bea01c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,