diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-13 12:35:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-13 12:35:50 +0400 |
commit | c83d37ccc07c40813e44658857fc79886099b485 (patch) | |
tree | a79f4ef12bf62cf4d5f6f61a40ce35ab2b100788 /source/blender/editors/mask/mask_ops.c | |
parent | 4cf66322f32aedcdb5c916452c95da559dfa83ca (diff) |
mango request
- highlight active mask layers.
- remove keyframes when all layer data is removed.
Diffstat (limited to 'source/blender/editors/mask/mask_ops.c')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index 7c94b79010c..315e40380f9 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -957,6 +957,12 @@ static int delete_exec(bContext *C, wmOperator *UNUSED(op)) spline = next_spline; } + + /* not essential but confuses users when there are keys with no data! + * assume if they delete all data from the layer they also dont care about keys */ + if (masklay->splines.first == NULL) { + BKE_mask_layer_free_shapes(masklay); + } } /* TODO: only update edited splines */ |