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>2015-10-22 17:40:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-29 13:10:14 +0300
commit54f1e682c6e19124f07ed5dad04a5588ecd791bd (patch)
treebb59150d9a1ac860e6714b3dacd9434784625ee1
parent4d581c01cce783fd5f2deed4a65db9128c174c2d (diff)
Fix T46569: Crash w/ mask & locked-track enabled
-rw-r--r--source/blender/editors/mask/mask_edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mask/mask_edit.c b/source/blender/editors/mask/mask_edit.c
index e1a58d529b6..9a2635c37d2 100644
--- a/source/blender/editors/mask/mask_edit.c
+++ b/source/blender/editors/mask/mask_edit.c
@@ -403,6 +403,10 @@ bool ED_mask_selected_minmax(const bContext *C, float min[2], float max[2])
Mask *mask = CTX_data_edit_mask(C);
MaskLayer *mask_layer;
bool ok = false;
+
+ if (mask == NULL)
+ return ok;
+
INIT_MINMAX2(min, max);
for (mask_layer = mask->masklayers.first;
mask_layer != NULL;