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>2012-06-13 12:35:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-13 12:35:50 +0400
commitc83d37ccc07c40813e44658857fc79886099b485 (patch)
treea79f4ef12bf62cf4d5f6f61a40ce35ab2b100788 /source/blender/editors/mask
parent4cf66322f32aedcdb5c916452c95da559dfa83ca (diff)
mango request
- highlight active mask layers. - remove keyframes when all layer data is removed.
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r--source/blender/editors/mask/mask_ops.c6
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 */