possible fix for crashing when re-doing mouse select operator, there was a missing NULL check on space-image.

This commit is contained in:
Campbell Barton
2012-10-01 15:17:03 +00:00
parent c01dc37e7a
commit 71499c16da

View File

@@ -1744,7 +1744,7 @@ static int mouse_select(bContext *C, const float co[2], int extend, int loop)
* the selection rather than de-selecting the closest. */
uvedit_pixel_to_float(sima, limit, 0.05f);
uvedit_pixel_to_float(sima, penalty, 5.0f / sima->zoom);
uvedit_pixel_to_float(sima, penalty, 5.0f / (sima ? sima->zoom : 1.0f));
/* retrieve operation mode */
if (ts->uv_flag & UV_SYNC_SELECTION) {