Fix regression: crash with uv constrain to bounds without image

Merge confusion between cc1daa9b76 and 0d62e963b0.
This commit is contained in:
Chris Blackbourn 2022-08-13 18:10:44 +12:00
parent 659b63751d
commit 4a11c0aabb
1 changed files with 1 additions and 1 deletions

View File

@ -926,7 +926,7 @@ int BKE_image_find_nearest_tile_with_offset(const Image *image,
zero_v2(r_uv_offset);
int tile_number_best = -1;
if (image->source != IMA_SRC_TILED) {
if (!image || image->source != IMA_SRC_TILED) {
return tile_number_best;
}