From 4e87f7ac776e74bbf75d5e0f11c3e6d0a7c27189 Mon Sep 17 00:00:00 2001 From: flurick Date: May 09 2023 02:11:18 +0000 Subject: Fix: Update image on vector tool undo/redo (#4870) Co-authored-by: jeremybullock <79284068+jeremybullock@users.noreply.github.com> Co-authored-by: Jeremy Bullock --- diff --git a/toonz/sources/tnztools/vectorselectiontool.cpp b/toonz/sources/tnztools/vectorselectiontool.cpp index a026b59..2a73d1e 100644 --- a/toonz/sources/tnztools/vectorselectiontool.cpp +++ b/toonz/sources/tnztools/vectorselectiontool.cpp @@ -416,12 +416,14 @@ void DragSelectionTool::UndoChangeStrokes::restoreRegions() const { void DragSelectionTool::UndoChangeStrokes::undo() const { transform(m_oldStrokes, m_oldBBox, m_oldCenter, m_oldDeformValues); restoreRegions(); + m_tool->notifyImageChanged(); } //----------------------------------------------------------------------------- void DragSelectionTool::UndoChangeStrokes::redo() const { transform(m_newStrokes, m_newBBox, m_newCenter, m_newDeformValues); + m_tool->notifyImageChanged(); } //----------------------------------------------------------------------------- @@ -521,6 +523,7 @@ void UndoChangeOutlineStyle::transform( void UndoChangeOutlineStyle::undo() const { transform(m_oldOptions, m_oldBBox); TTool::getApplication()->getCurrentTool()->notifyToolChanged(); + m_tool->notifyImageChanged(); } //----------------------------------------------------------------------------- @@ -528,6 +531,7 @@ void UndoChangeOutlineStyle::undo() const { void UndoChangeOutlineStyle::redo() const { transform(m_newOptions, m_newBBox); TTool::getApplication()->getCurrentTool()->notifyToolChanged(); + m_tool->notifyImageChanged(); } //-----------------------------------------------------------------------------