Skip to content

Commit

Permalink
Merge pull request #217 from naivisoftware/sequencer_hovering_curve_fix
Browse files Browse the repository at this point in the history
- changed abs to std::abs to prevent value being cast to integer resulting into an always positive if statement
  • Loading branch information
TimGroeneboom committed Aug 25, 2022
2 parents b1518a9 + 05cd5f3 commit 569c6c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ namespace nap

// insert curve point on click
const float maxDist = 0.1f;
if(abs(y_in_curve - y_in_segment) < maxDist)
if(std::abs(y_in_curve - y_in_segment) < maxDist)
{
mState.mAction = sequenceguiactions::createAction<sequenceguiactions::HoveringCurve>(
track.mID,
Expand Down

0 comments on commit 569c6c2

Please sign in to comment.