CMayaSpline: Silence unused variable warnings

This commit is contained in:
Lioncash 2020-06-21 19:15:41 -04:00
parent 3c78cbbeb3
commit cd55278e3e
1 changed files with 5 additions and 5 deletions

View File

@ -310,13 +310,13 @@ void CMayaSpline::CalculateHermiteCoefficients(const std::vector<CVector2f>& kCo
const CVector2f& kTangentB = kControlPoints[2];
const CVector2f& kKnotB = kControlPoints[3];
CVector2f Range = kKnotB - kKnotA;
[[maybe_unused]] const CVector2f Range = kKnotB - kKnotA;
CVector2f KnotAToTangentA = kTangentA - kKnotA;
float MulA = (KnotAToTangentA.X == 0 ? 5729578.f : KnotAToTangentA.Y / KnotAToTangentA.X);
const CVector2f KnotAToTangentA = kTangentA - kKnotA;
const float MulA = (KnotAToTangentA.X == 0 ? 5729578.f : KnotAToTangentA.Y / KnotAToTangentA.X);
CVector2f KnotBToTangentB = kKnotB - kTangentB;
float MulB = (KnotBToTangentB.X == 0 ? 5729578.f : KnotBToTangentB.Y / KnotBToTangentB.X);
const CVector2f KnotBToTangentB = kKnotB - kTangentB;
[[maybe_unused]] const float MulB = (KnotBToTangentB.X == 0 ? 5729578.f : KnotBToTangentB.Y / KnotBToTangentB.X);
#if 0
// todo: better organization and better variable names