Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kowalski <makowalski@nvidia.com>2022-01-06 04:50:40 +0300
committerMichael Kowalski <makowalski@nvidia.com>2022-01-06 04:50:40 +0300
commit9d410ea853ff84275e7bba2a63f9b76d50b5165b (patch)
tree1df6b7aa86eece3daa5004cf1bef438a73c67213
parent40d78aaea3f18df4948293a293ce7ba07aadc302 (diff)
parent3ca34d49bcd351d75dd07d3126558d70e94b5601 (diff)
Merge branch 'temp-T90535-usd-alab-material-import' into temp-usd-udim-importtemp-usd-udim-import
-rw-r--r--source/blender/io/usd/intern/usd_reader_material.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_material.cc b/source/blender/io/usd/intern/usd_reader_material.cc
index 6f0134b17d4..58bacccca5f 100644
--- a/source/blender/io/usd/intern/usd_reader_material.cc
+++ b/source/blender/io/usd/intern/usd_reader_material.cc
@@ -138,10 +138,6 @@ static bool is_udim_path(const std::string &path)
* Returns std::nullopt if no tiles were found. */
static std::optional<blender::Vector<int>> get_udim_tiles(const std::string &file_path)
{
- /* Check if we have a UDIM path. */
- std::size_t udim_token_offset = file_path.find("<UDIM>");
- BLI_assert(udim_token_offset != std::string::npos);
-
char base_udim_path[FILE_MAX];
BLI_strncpy(base_udim_path, file_path.c_str(), sizeof(base_udim_path));
@@ -718,7 +714,9 @@ void USDMaterialReader::load_tex_image(const pxr::UsdShadeShader &usd_shader,
}
if (udim_tiles) {
- add_udim_tiles(image, udim_tiles.value());
+ /* Not calling udim_tiles.value(), which is not
+ * supported in macOS versions prior to 10.14.1. */
+ add_udim_tiles(image, *udim_tiles);
}
tex_image->id = &image->id;