Skip to content

Commit

Permalink
Fixes undo/redo with tangents editing
Browse files Browse the repository at this point in the history
	The tangents editing logic was missing adding a journalling
checkpoint, hence the undo/redo wasn't working properly.
	This commit fixes it.
  • Loading branch information
IanCaio committed Mar 4, 2021
1 parent 9394358 commit 3016a29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ void AutomationEditor::mousePressEvent( QMouseEvent* mouseEvent )
{
if (m_pattern->progressionType() == AutomationPattern::CubicHermiteProgression)
{
m_pattern->addJournalCheckPoint();

// Gets the closest node to the mouse click
timeMap::iterator node = getClosestNode(mouseEvent->x());

Expand Down

0 comments on commit 3016a29

Please sign in to comment.