Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-01 19:17:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-01 19:17:03 +0400
commit71499c16da307b451ff5484a28018a5cd9349f16 (patch)
tree454111a9809b214e68693c6d4af80c7a339fb2fa
parentc01dc37e7a4208328e0d610a3de2cc722de59ea1 (diff)
possible fix for crashing when re-doing mouse select operator, there was a missing NULL check on space-image.
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index 06da1c8bfea..70f2bf70ec8 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -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) {