From 07b45ca4578ccaed91f7f3c70e82dc7ffbdf47ab Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 16 Jan 2019 06:11:48 +0100 Subject: spline: fix deadlock, logic error Tracking rarely deadlocked when saving mappings. Investigating it further also shown how a wrong bundle was used for Accela's splines. --- logic/pipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logic') diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index c355bf19..81ee05b2 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -195,7 +195,7 @@ double pipeline::map(double pos, Map& axis) axis.spline_main.set_tracking_active(!altp); axis.spline_alt.set_tracking_active(altp); auto& fc = altp ? axis.spline_alt : axis.spline_main; - return double(fc.get_value(pos)); + return fc.get_value(pos); } //#define NO_NAN_CHECK -- cgit v1.2.3