Cleanup: missing NULL check in assert

This commit is contained in:
Campbell Barton 2021-06-10 01:55:47 +10:00
parent cb0cab48ef
commit 05f15645ec
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ static bool eyedropper_cryptomatte_sample_image_fl(const bNode *node,
{
bool success = false;
Image *image = (Image *)node->id;
BLI_assert(GS(image->id.name) == ID_IM);
BLI_assert((image == NULL) || (GS(image->id.name) == ID_IM));
ImageUser *iuser = &crypto->iuser;
if (image && image->type == IMA_TYPE_MULTILAYER) {