diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-09 18:55:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-09 19:22:46 +0300 |
commit | 05f15645ec9b6d7a1812b0a5463e6135f1172e97 (patch) | |
tree | 208426e090981c065b23ce10915fcf875bd9d353 /source/blender | |
parent | cb0cab48efda03eb4f7f4a3c097be09212fa4fa0 (diff) |
Cleanup: missing NULL check in assert
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_eyedropper_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_eyedropper_color.c b/source/blender/editors/interface/interface_eyedropper_color.c index 6583fa31dbf..ba72cecc514 100644 --- a/source/blender/editors/interface/interface_eyedropper_color.c +++ b/source/blender/editors/interface/interface_eyedropper_color.c @@ -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) { |