diff options
author | makowalski <makowalski@nvidia.com> | 2021-03-09 05:33:52 +0300 |
---|---|---|
committer | makowalski <makowalski@nvidia.com> | 2021-03-09 05:33:52 +0300 |
commit | 0746445c70a950ead12004df2f07d5f8c3e7f338 (patch) | |
tree | 949f3a91884c3b1e914c57e1d8747a74ecc10dc8 /source/blender | |
parent | c86a4b82c23378cabed1396830a723bc231e6764 (diff) |
USD Import: fixed compiler warnings.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/io/usd/intern/usd_reader_camera.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_camera.cc b/source/blender/io/usd/intern/usd_reader_camera.cc index d76c2828d3a..e1af9df2b54 100644 --- a/source/blender/io/usd/intern/usd_reader_camera.cc +++ b/source/blender/io/usd/intern/usd_reader_camera.cc @@ -89,8 +89,9 @@ void USDCameraReader::readObjectData(Main *bmain, double motionSampleTime) bcam->type = (projectionVal.Get<pxr::TfToken>().GetString() == "perspective") ? CAM_PERSP : CAM_ORTHO; - bcam->clip_start = max_ff(0.1f, clippingRangeVal.Get<pxr::GfVec2f>()[0]); - bcam->clip_end = clippingRangeVal.Get<pxr::GfVec2f>()[1]; + // Calling UncheckedGet() to silence compiler warnings. + bcam->clip_start = max_ff(0.1f, clippingRangeVal.UncheckedGet<pxr::GfVec2f>()[0]); + bcam->clip_end = clippingRangeVal.UncheckedGet<pxr::GfVec2f>()[1]; bcam->dof.focus_distance = focalDistanceVal.Get<float>(); bcam->dof.aperture_fstop = static_cast<float>(fstopVal.Get<float>()); @@ -100,4 +101,4 @@ void USDCameraReader::readObjectData(Main *bmain, double motionSampleTime) } USDXformReader::readObjectData(bmain, motionSampleTime); -}
\ No newline at end of file +} |