Skip to content

Commit

Permalink
Merge pull request #3343 from seando-adsk/adsk/bugfix/hio_load_mono_exr
Browse files Browse the repository at this point in the history
 EMSUSD-1691 - Load mono EXR images

(Internal change: 2344560)
  • Loading branch information
pixar-oss committed Oct 14, 2024
2 parents c54af29 + 262b84a commit c26297a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pxr/imaging/hio/OpenEXR/openexr-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,8 @@ static exr_result_t _nanoexr_rgba_decoding_initialize(
for (int c = 0; c < decoder->channel_count; ++c) {
int channelIndex = -1;
decoder->channels[c].decode_to_ptr = NULL;
if (strIsComponent(layerName, decoder->channels[c].channel_name, "red")) {
if (strIsComponent(layerName, decoder->channels[c].channel_name, "red")
|| (rgba[0] == -1 && strIsComponent(layerName, decoder->channels[c].channel_name, "y"))) {
rgba[0] = c;
channelIndex = 0;
}
Expand Down

0 comments on commit c26297a

Please sign in to comment.