mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T102942: Cycles wrong alpha for multi-layer PSD files
This commit is contained in:
parent
427b0a0ab2
commit
3029bd2b0c
1 changed files with 5 additions and 0 deletions
|
|
@ -207,6 +207,11 @@ bool OIIOImageLoader::load_pixels(const ImageMetaData &metadata,
|
|||
if (strcmp(in->format_name(), "dds") == 0) {
|
||||
do_associate_alpha = true;
|
||||
}
|
||||
/* Workaround OIIO bug that sets oiio:UnassociatedAlpha on the last layer
|
||||
* but not composite image that we read. */
|
||||
if (strcmp(in->format_name(), "psd") == 0) {
|
||||
do_associate_alpha = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue