Skip to content

Commit

Permalink
Merge pull request #1787 from marktucker/dev_udim_missing_first_tile
Browse files Browse the repository at this point in the history
Fix UDIM file resolving when no "1001" file exists

(Internal change: 2218532)
  • Loading branch information
pixar-oss committed Mar 4, 2022
2 parents 20a9fe4 + 7f19ba1 commit 9c63136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pxr/usdImaging/usdImaging/materialParamUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ _ResolvedPathForFirstTile(
// naming pattern but the files that are linked do not. We'll
// let whoever consumes the pattern determine if they want to
// resolve symlinks themselves.
return resolver.Resolve(path);
path = resolver.Resolve(path);
if (!path.empty())
return path;
}
return std::string();
}
Expand Down

0 comments on commit 9c63136

Please sign in to comment.