Fix: read cryptomatte manifests when images aren't loaded yet.

A check was preventing the actual image to load and was therefore not
parsed.
This commit is contained in:
Jeroen Bakker 2021-03-16 10:08:24 +01:00
parent 0a34fec56a
commit cb3005c263
1 changed files with 2 additions and 2 deletions

View File

@ -80,10 +80,10 @@ static blender::bke::cryptomatte::CryptomatteSessionPtr cryptomatte_init_from_no
case CMP_CRYPTOMATTE_SRC_IMAGE: {
Image *image = (Image *)node.id;
BLI_assert(!image || GS(image->id.name) == ID_IM);
if (!image || image->type != IMA_TYPE_MULTILAYER) {
if (!image) {
break;
}
BLI_assert(GS(image->id.name) == ID_IM);
ImageUser *iuser = &node_cryptomatte->iuser;
BKE_image_user_frame_calc(image, iuser, frame_number);