Fix regression: crash with uv constrain to bounds without image
Merge confusion betweencc1daa9b76
and0d62e963b0
.
This commit is contained in:
parent
659b63751d
commit
4a11c0aabb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue