Skip to content

Commit aaac507

Browse files
authored
Merge pull request #1470 from proberts-cinesite/CurvesPrimitiveEvaluatorTangentPointsInOppositeDirectionForLinearInterpolation
IECoreScene CurvesPrimitiveEvaluator : fix `vTangent()` error
2 parents f6b876b + ff2a9dc commit aaac507

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Fixes
77
- USDScene :
88
- 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.
99
- 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.
10+
- CurvesPrimitiveEvaluator : Fixed error in `Result::vTangent()` function causing tangent to point in opposite direction for curves with `Linear` interpolation.
1011

1112
10.5.x.x (relative to 10.5.15.0)
1213
========

src/IECoreScene/CurvesPrimitiveEvaluator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ void CurvesPrimitiveEvaluator::Result::init( unsigned curveIndex, float v, const
260260
{
261261
m_coefficients[0] = 1.0f - m_segmentV;
262262
m_coefficients[1] = m_segmentV;
263-
m_derivativeCoefficients[0] = 1.0f;
264-
m_derivativeCoefficients[1] = -1.0f;
263+
m_derivativeCoefficients[0] = -1.0f;
264+
m_derivativeCoefficients[1] = 1.0f;
265265
m_vertexDataIndices[0] = m_varyingDataIndices[0] = o + i;
266266
if( periodic )
267267
{

0 commit comments

Comments
 (0)