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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-09-28 12:37:33 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-09-28 12:37:33 +0400
commit2cca83caf1e10dc8ee5f39486d46c60e10351006 (patch)
tree3f6b4cd2438281729aa9fefc86b705f7aaba7c20 /source/blender/editors/mask
parentd41f99ac57321fdd386ab7c64394dd9d8e86fc02 (diff)
Fix T41981: Crash by Copy mask splines without splines
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r--source/blender/editors/mask/mask_ops.c4
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;