USD: Skeleton and blend shape import #110912
|
@ -169,6 +169,9 @@ std::optional<XformResult> USDXformReader::get_local_usd_xform(const float time)
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
/* The USD bind transform is a matrix of doubles,
|
||||
makowalski marked this conversation as resolved
Outdated
|
||||
* but we cast it to GfMatrix4f because Blender expects
|
||||
* a matrix of floats. */
|
||||
return XformResult(pxr::GfMatrix4f(xform), is_constant);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
As
xform
is already apxr::GfMatrix4f
, and that's the expected type for aXformResult
, why is this cast necessary? Might be worth a comment.That's a good point, and I've added a comment to explain this.
xform
is a matrix for doubles (GfMatrix4d
), but Blender expects a matrix of floats, so I explicitly convert to aGfMatrix4f
for the return value.