diff --git a/Changes b/Changes index dafed3ac37..84ae7fbb92 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,7 @@ Fixes - USDScene : - Fixed writing of shutter values from cameras without a `shutter` parameter. The `shutter:open` and `shutter:close` attributes are now omitted instead of being written with Cortex's default -0.5, 0.5 shutter values. - Fixed reading of shutter values from cameras without `shutter:open` and `shutter:close` attributes. The `shutter` parameter is now omitted instead of being created with USD's default 0, 0 shutter values. +- CurvesPrimitiveEvaluator : Fixed error in `Result::vTangent()` function causing tangent to point in opposite direction for curves with `Linear` interpolation. 10.5.x.x (relative to 10.5.15.0) ======== diff --git a/src/IECoreScene/CurvesPrimitiveEvaluator.cpp b/src/IECoreScene/CurvesPrimitiveEvaluator.cpp index 91148cdf2e..6eddf07dad 100644 --- a/src/IECoreScene/CurvesPrimitiveEvaluator.cpp +++ b/src/IECoreScene/CurvesPrimitiveEvaluator.cpp @@ -260,8 +260,8 @@ void CurvesPrimitiveEvaluator::Result::init( unsigned curveIndex, float v, const { m_coefficients[0] = 1.0f - m_segmentV; m_coefficients[1] = m_segmentV; - m_derivativeCoefficients[0] = 1.0f; - m_derivativeCoefficients[1] = -1.0f; + m_derivativeCoefficients[0] = -1.0f; + m_derivativeCoefficients[1] = 1.0f; m_vertexDataIndices[0] = m_varyingDataIndices[0] = o + i; if( periodic ) {