OpenToonz - An open-source full-featured 2D animation creation software
C
Fix filmstrip disabled tools (#2789)
manongjohn9bce8122625f
diff --git a/toonz/sources/tnztools/tool.cpp b/toonz/sources/tnztools/tool.cppindex aa2a1b90e..954a63b24 100644--- a/toonz/sources/tnztools/tool.cpp+++ b/toonz/sources/tnztools/tool.cpp@@ -843,7 +843,7 @@ QString TTool::updateEnabled() {return (enable(true), QString());// Check against camera column- if (columnIndex < 0 && (targetType & TTool::EmptyTarget) &&+ if (!filmstrip && columnIndex < 0 && (targetType & TTool::EmptyTarget) &&(m_name == T_Type || m_name == T_Geometric || m_name == T_Brush))return (enable(false), QString());diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cppindex 3009998a6..c051fe635 100644--- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp+++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp@@ -1201,7 +1201,7 @@ void ToonzRasterBrushTool::leftButtonDown(const TPointD &pos,if (!app) return;int col = app->getCurrentColumn()->getColumnIndex();- m_enabled = col >= 0;+ m_enabled = col >= 0 || app->getCurrentFrame()->isEditingLevel();// todo: gestire autoenableif (!m_enabled) return;diff --git a/toonz/sources/tnztools/toonzvectorbrushtool.cpp b/toonz/sources/tnztools/toonzvectorbrushtool.cppindex 2653acbe0..0f7c9b876 100644--- a/toonz/sources/tnztools/toonzvectorbrushtool.cpp+++ b/toonz/sources/tnztools/toonzvectorbrushtool.cpp@@ -645,7 +645,7 @@ void ToonzVectorBrushTool::leftButtonDown(const TPointD &pos,int col = app->getCurrentColumn()->getColumnIndex();m_isPath = app->getCurrentObject()->isSpline();- m_enabled = col >= 0 || m_isPath;+ m_enabled = col >= 0 || m_isPath || app->getCurrentFrame()->isEditingLevel();// todo: gestire autoenableif (!m_enabled) return;if (!m_isPath) {