From 1504675c25b149717d1f71c1362bc019ec95ec1e Mon Sep 17 00:00:00 2001 From: Rodney Date: Mar 06 2020 15:10:21 +0000 Subject: Merge pull request #3129 from martinvanzijl/issue-2190-tape-tool-fix Fix issue with tape tool not drawing after switching via shortcut --- diff --git a/toonz/sources/tnztools/vectortapetool.cpp b/toonz/sources/tnztools/vectortapetool.cpp index 592f022..494ab62 100644 --- a/toonz/sources/tnztools/vectortapetool.cpp +++ b/toonz/sources/tnztools/vectortapetool.cpp @@ -23,6 +23,7 @@ #include "tenv.h" // For Qt translation support #include +#include using namespace ToolUtils; @@ -744,6 +745,11 @@ public: } void onActivate() override { + // enable drawing if we are in a scene viewer + QWidget *focusWidget = QApplication::focusWidget(); + if (focusWidget && QString(focusWidget->metaObject()->className()) == "SceneViewer") + m_draw = true; + if (!m_firstTime) return; std::wstring s = ::to_wstring(TapeMode.getValue());