diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-09-28 12:37:33 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-03 17:09:26 +0400 |
commit | 05460126696a76d45cecae43f55fba9b19ba1707 (patch) | |
tree | a3a3c759a1d26fcf052af18c0e5028b34d74ded9 /source | |
parent | eaaa8934ae270c919128cb533cf44b786aae810c (diff) |
Fix T41981: Crash by Copy mask splines without splines
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index 2497095aca6..16e17336c1d 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -2294,6 +2294,10 @@ static int copy_splines_exec(bContext *C, wmOperator *UNUSED(op)) Mask *mask = CTX_data_edit_mask(C); MaskLayer *mask_layer = BKE_mask_layer_active(mask); + if (mask_layer == NULL) { + return OPERATOR_CANCELLED; + } + BKE_mask_clipboard_copy_from_layer(mask_layer); return OPERATOR_FINISHED; |