Skip to content

Commit bf5ea42

Browse files
committed
USD PrimitiveAlgo : Fix compilation with USD 25.05
The functions involving double matrices with float vectors have been removed, so we must cast explicitly.
1 parent d968a39 commit bf5ea42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/IECoreUSD/src/IECoreUSD/PrimitiveAlgo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ bool readPrimitiveVariables( const pxr::UsdSkelRoot &skelRoot, const pxr::UsdGeo
426426
pxr::GfMatrix4d inverseBind = skinningQuery.GetGeomBindTransform( time ).GetInverse();
427427
for( auto &p : points )
428428
{
429-
p = inverseBind.Transform( p );
429+
p = pxr::GfVec3f( inverseBind.Transform( pxr::GfVec3d( p ) ) );
430430
}
431431

432432
Canceller::check( canceller );

0 commit comments

Comments
 (0)