Skip to content
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

Merged
merged 2 commits into from
Mar 5, 2018

Conversation

oktomus
Copy link
Member

@oktomus oktomus commented Mar 4, 2018

Original PR: #1865

@@ -706,7 +706,7 @@ namespace
{
bool success = true;

if (extension != ".exr")
if (extension != ".exr" && extension != ".EXR")
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

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());

Copy link
Member

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.

Copy link
Member Author

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

@dictoon dictoon merged commit 252771c into appleseedhq:master Mar 5, 2018
@dictoon
Copy link
Member

dictoon commented Mar 5, 2018

Thanks!

@oktomus oktomus deleted the save_extra_aovs_minor_fix branch July 10, 2018 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants