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:
Diffstat (limited to 'source/blender/editors/animation/keyframes_edit.c')
-rw-r--r--source/blender/editors/animation/keyframes_edit.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c
index e50203cbc28..795e3ec8341 100644
--- a/source/blender/editors/animation/keyframes_edit.c
+++ b/source/blender/editors/animation/keyframes_edit.c
@@ -46,6 +46,7 @@
#include "DNA_key_types.h"
#include "DNA_lamp_types.h"
#include "DNA_lattice_types.h"
+#include "DNA_linestyle_types.h"
#include "DNA_mesh_types.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
@@ -332,7 +333,7 @@ static short ob_keyframes_loop(KeyframeEditData *ked, Object *ob, KeyframeEditFu
if ((lt->adt) && !(filterflag & ADS_FILTER_NOLAT)) {
if (adt_keyframes_loop(ked, lt->adt, key_ok, key_cb, fcu_cb, filterflag))
return 1;
- }
+ }
}
break;
}
@@ -381,6 +382,24 @@ static short scene_keyframes_loop(KeyframeEditData *ked, Scene *sce, KeyframeEdi
return 1;
}
+ /* Line styles */
+ {
+ SceneRenderLayer *srl;
+ FreestyleLineSet *lineset;
+ FreestyleLineStyle *linestyle;
+
+ for (srl = (SceneRenderLayer *)sce->r.layers.first; srl; srl = srl->next) {
+ if (srl->layflag & SCE_LAY_FRS) {
+ for (lineset = (FreestyleLineSet *)srl->freestyleConfig.linesets.first; lineset; lineset = lineset->next) {
+ linestyle = lineset->linestyle;
+ if (linestyle->adt) {
+ if (adt_keyframes_loop(ked, linestyle->adt, key_ok, key_cb, fcu_cb, filterflag))
+ return 1;
+ }
+ }
+ }
+ }
+ }
return 0;
}