diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-22 17:40:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-22 17:40:36 +0300 |
commit | 9a6a3f5346d90ea4e3c302ce7f2c49a6598cebfe (patch) | |
tree | 0f7da9215eae26479614dc8556b0575771e4f4a6 /source/blender/editors/mask | |
parent | e6c943c9176d2bcf40bd40c9b0212df4f87858b5 (diff) |
Fix T46569: Crash w/ mask & locked-track enabled
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r-- | source/blender/editors/mask/mask_edit.c | 4 |
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; |