Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Set initial value for undo boolean in tool class

Dennis Lam97375d7829bd
diff --git a/toonz/sources/include/tools/tool.h b/toonz/sources/include/tools/tool.h
index c6b71bf35..cc2e1d6fb 100644
--- a/toonz/sources/include/tools/tool.h
+++ b/toonz/sources/include/tools/tool.h
@@ -585,7 +585,7 @@ protected:
int m_targetType; //!< The tool's image type target.
bool m_enabled; //!< Whether the tool allows user interaction.
- bool m_canUndo; //!< Whether the tool allows the user to undo while the tool is selected
+ bool m_canUndo = true; //!< Whether the tool allows the user to undo while the tool is selected
bool m_active;
bool m_picking;