Fix missing generation of alpha difference images in render tests

The part of the patch wasn't properly applied from a working branch,
and it wasn't very visible because the development environment already
had all files on disk.

Pull Request: https://projects.blender.org/blender/blender/pulls/117504
This commit is contained in:
Sergey Sharybin
2024-01-25 14:20:30 +01:00
committed by Sergey Sharybin
parent 5ed2eea0f6
commit 9fdf3bc1f4

View File

@@ -411,7 +411,7 @@ class Report:
shutil.copy(new_img, old_img)
failed = False
# Generate diff image.
# Generate color diff image.
command = (
self.oiiotool,
ref_img,
@@ -423,7 +423,24 @@ class Report:
"--mulc", "16",
"-o", diff_color_img,
)
try:
subprocess.check_output(command)
except subprocess.CalledProcessError as e:
if self.verbose:
print_message(e.output.decode("utf-8", 'ignore'))
# Generate alpha diff image.
command = (
self.oiiotool,
ref_img,
"--ch", "A",
tmp_filepath,
"--ch", "A",
"--sub",
"--abs",
"--mulc", "16",
"-o", diff_alpha_img,
)
try:
subprocess.check_output(command)
except subprocess.CalledProcessError as e: