diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-06 22:07:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-06 22:07:10 +0400 |
commit | 0d8e1abff55658bd59d307f4dfc74ab724dbf1a3 (patch) | |
tree | 0cb6e567b7ccf797894a65809d9c00c7ac81277e /source/blender/editors | |
parent | 228ba5657971df06d84322e518836c306709644e (diff) |
selected_sequences wasnt working right, added 'sequences' property to the context
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/screen_context.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_context.c b/source/blender/editors/screen/screen_context.c index de1312501d4..1c570d98744 100644 --- a/source/blender/editors/screen/screen_context.c +++ b/source/blender/editors/screen/screen_context.c @@ -69,7 +69,7 @@ int ed_screen_context(const bContext *C, const char *member, bContextDataResult "active_base", "active_object", "object", "edit_object", "sculpt_object", "vertex_paint_object", "weight_paint_object", "texture_paint_object", "particle_edit_object", - "selected_sequences", "selected_editable_sequences", /* sequencer */ + "sequences", "selected_sequences", "selected_editable_sequences", /* sequencer */ NULL}; CTX_data_dir_set(result, dir); @@ -321,7 +321,18 @@ int ed_screen_context(const bContext *C, const char *member, bContextDataResult return 1; } - else if(CTX_data_equals(member, "selected_strips")) { + else if(CTX_data_equals(member, "sequences")) { + Editing *ed= seq_give_editing(scene, FALSE); + if(ed) { + Sequence *seq; + for (seq= ed->seqbasep->first; seq; seq= seq->next) { + CTX_data_list_add(result, &scene->id, &RNA_Sequence, seq); + } + CTX_data_type_set(result, CTX_DATA_TYPE_COLLECTION); + return 1; + } + } + else if(CTX_data_equals(member, "selected_sequences")) { Editing *ed= seq_give_editing(scene, FALSE); if(ed) { Sequence *seq; |