Skip to content

Commit

Permalink
Fix incorrect typecast to GfMatrix4d(), should be GfMatrix4d
Browse files Browse the repository at this point in the history
(Internal change: 2294468)
  • Loading branch information
meshula authored and pixar-oss committed Sep 7, 2023
1 parent 6430162 commit 26cc843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/imaging/hio/OpenEXRImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ bool Hio_OpenEXRImage::GetMetadata(TfToken const &key, VtValue *value) const

auto convertM4dIfNecessary = [](const VtValue& v) -> VtValue {
if (v.CanCastToTypeid(typeid(GfMatrix4d))) {
return v.CastToTypeid(v, typeid(GfMatrix4d()));
return v.CastToTypeid(v, typeid(GfMatrix4d));
}
return v;
};
Expand Down

0 comments on commit 26cc843

Please sign in to comment.