Skip to content

Commit

Permalink
Easing: fix undo bug #228
Browse files Browse the repository at this point in the history
Don't create two undo actions after easing apply.
  • Loading branch information
rodlie committed Aug 24, 2024
1 parent 8479643 commit b471b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Animators/qrealanimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ void QrealAnimator::setExpressionAction(const qsptr<Expression> &expression) {

void QrealAnimator::setExpressionEasingAction(const qsptr<Expression> &expression)
{
{
/*{
prp_pushUndoRedoName("Change Easing");
UndoRedo ur;
ur.fUndo = [this]() { setExpression(nullptr); };
ur.fRedo = [this, expression]() { setExpression(expression); };
prp_addUndoRedo(ur);
}
}*/
setExpression(expression);
}

Expand Down

0 comments on commit b471b7c

Please sign in to comment.