Skip to content

Commit

Permalink
ReadOIIO: add explanation for the view parsing code
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Oct 14, 2019
1 parent af69a63 commit f31d7b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OIIO/ReadOIIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,10 @@ ReadOIIOPlugin::getLayers(const vector<ImageSpec>& subimages,
}
if ( view.empty() && !layer.empty() ) {
///Check if the layer we parsed is in fact not a view name
// Note: This code was removed in commit https://github.com/NatronGitHub/openfx-io/commit/79ac6546e0a1aed7f14fd15fbc3dfd634b91d4c5
// but it is necessary to read all views of multiview EXRs such
// as https://github.com/openexr/openexr-images/raw/master/MultiView/Balls.exr
// see issue https://github.com/NatronGitHub/Natron/issues/429
for (std::size_t v = 0; v < views.size(); ++v) {
if ( caseInsensitiveCompare(views[v], layer) ) {
view = layer;
Expand Down

0 comments on commit f31d7b6

Please sign in to comment.