-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fix on save extra AOVs (originally #1865) #1880
Conversation
@@ -706,7 +706,7 @@ namespace | |||
{ | |||
bool success = true; | |||
|
|||
if (extension != ".exr") | |||
if (extension != ".exr" && extension != ".EXR") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not robust enough (wouldn't work with ".Exr" for instance). I suggest converting the extension to lower case before doing the check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then we should also do that in write_image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already properly done in write_image()
:
string extension = lower_case(bf_file_path.extension().string());
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That said, the problem appears to also exist in write_main_image()
, maybe that's what you meant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it wasn't, I haven't seen the lower_case code. But thanks for pointing out this, I will fix that
Thanks! |
Original PR: #1865