Skip to content

Commit

Permalink
Simplify tangent setting code
Browse files Browse the repository at this point in the history
Co-authored-by: Dalton Messmer <messmer.dalton@gmail.com>
  • Loading branch information
regulus79 and messmerd authored Oct 9, 2024
1 parent aa655ec commit 037497d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gui/clips/AutomationClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,10 @@ bool AutomationClipView::splitClip(const TimePos pos)
if (POS(it) >= pos)
{
rightClip->putValues(POS(it) - pos, INVAL(it), OUTVAL(it), false);
rightClip->getTimeMap().find(POS(it) - pos).value().setLockedTangents(LOCKEDTAN(it));
rightClip->getTimeMap().find(POS(it) - pos).value().setInTangent(INTAN(it));
rightClip->getTimeMap().find(POS(it) - pos).value().setOutTangent(OUTTAN(it));
AutomationNode& node = rightClip->getTimeMap().find(POS(it) - pos).value();
node.setLockedTangents(LOCKEDTAN(it));
node.setInTangent(INTAN(it));
node.setOutTangent(OUTTAN(it));
}
}

Expand Down

0 comments on commit 037497d

Please sign in to comment.