Skip to content

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

C

fix animate tool

shun_iwasawa0231580ff0af
diff --git a/toonz/sources/tnztools/tooloptionscontrols.cpp b/toonz/sources/tnztools/tooloptionscontrols.cpp
index 5d822e769..ea14e2807 100644
--- a/toonz/sources/tnztools/tooloptionscontrols.cpp
+++ b/toonz/sources/tnztools/tooloptionscontrols.cpp
@@ -1215,6 +1215,7 @@ void PegbarChannelField::onChange(TMeasuredValue *fld, bool addToUndo) {
// and only for the first drag
// This should always fire if addToUndo is true
if (!m_firstMouseDrag) {
+ m_before = TStageObjectValues();
m_before.setFrameHandle(m_frameHandle);
m_before.setObjectHandle(m_objHandle);
m_before.setXsheetHandle(m_xshHandle);