From 8f9d23ff295a340a178beeffeaeebe1636c77715 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 28 Nov 2021 13:58:13 +0100 Subject: [PATCH] linmath: Remove redundant sin() calculation in LQuaternion --- panda/src/linmath/lquaternion_src.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/panda/src/linmath/lquaternion_src.cxx b/panda/src/linmath/lquaternion_src.cxx index cd48827eea..430b9971dc 100644 --- a/panda/src/linmath/lquaternion_src.cxx +++ b/panda/src/linmath/lquaternion_src.cxx @@ -106,7 +106,6 @@ set_hpr(const FLOATNAME(LVecBase3) &hpr, CoordinateSystem cs) { v = FLOATNAME(LVector3)::right(cs); a = deg_2_rad(hpr[1] * 0.5f); csincos(a, &s, &c); - s = csin(a); quat_p.set(c, v[0] * s, v[1] * s, v[2] * s); v = FLOATNAME(LVector3)::forward(cs); a = deg_2_rad(hpr[2] * 0.5f);