diff --git a/source/blender/io/usd/intern/usd_reader_material.cc b/source/blender/io/usd/intern/usd_reader_material.cc index 5d143345034..e821cc70779 100644 --- a/source/blender/io/usd/intern/usd_reader_material.cc +++ b/source/blender/io/usd/intern/usd_reader_material.cc @@ -250,7 +250,7 @@ static pxr::TfToken get_source_color_space(const pxr::UsdShadeShader &usd_shader pxr::VtValue color_space_val; if (color_space_input.Get(&color_space_val) && color_space_val.IsHolding()) { - return color_space_val.Get(); + return color_space_val.UncheckedGet(); } return pxr::TfToken(); @@ -273,7 +273,7 @@ static int get_image_extension(const pxr::UsdShadeShader &usd_shader, const int return default_value; } - pxr::TfToken wrap_val = wrap_input_val.Get(); + pxr::TfToken wrap_val = wrap_input_val.UncheckedGet(); if (wrap_val == usdtokens::repeat) { return SHD_IMAGE_EXTENSION_REPEAT; @@ -341,7 +341,7 @@ static void set_viewport_material_props(Material *mtl, const pxr::UsdShadeShader if (metallic_input.GetAttr().HasAuthoredValue() && metallic_input.GetAttr().Get(&val) && val.IsHolding()) { - mtl->metallic = val.Get(); + mtl->metallic = val.UncheckedGet(); } } @@ -350,7 +350,7 @@ static void set_viewport_material_props(Material *mtl, const pxr::UsdShadeShader if (roughness_input.GetAttr().HasAuthoredValue() && roughness_input.GetAttr().Get(&val) && val.IsHolding()) { - mtl->roughness = val.Get(); + mtl->roughness = val.UncheckedGet(); } } } @@ -1292,7 +1292,7 @@ void USDMaterialReader::load_tex_image(const pxr::UsdShadeShader &usd_shader, return; } - const pxr::SdfAssetPath &asset_path = file_val.Get(); + const pxr::SdfAssetPath &asset_path = file_val.UncheckedGet(); std::string file_path = asset_path.GetResolvedPath(); if (file_path.empty()) { diff --git a/source/blender/io/usd/intern/usd_reader_shape.cc b/source/blender/io/usd/intern/usd_reader_shape.cc index 1d753708936..fd0d3bd1807 100644 --- a/source/blender/io/usd/intern/usd_reader_shape.cc +++ b/source/blender/io/usd/intern/usd_reader_shape.cc @@ -74,13 +74,13 @@ void USDShapeReader::read_values(const pxr::UsdTimeCode time, pxr::VtValue points_val = adapter.GetPoints(prim_, time); if (points_val.IsHolding()) { - positions = points_val.Get(); + positions = points_val.UncheckedGet(); } pxr::VtValue topology_val = adapter.GetTopology(prim_, pxr::SdfPath(), time); if (topology_val.IsHolding()) { - const pxr::HdMeshTopology &topology = topology_val.Get(); + const pxr::HdMeshTopology &topology = topology_val.UncheckedGet(); face_counts = topology.GetFaceVertexCounts(); face_indices = topology.GetFaceVertexIndices(); }