diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-01-24 12:55:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-01-24 12:55:31 +0300 |
commit | a727277a256ed2ff343b66ab0e22bf0fa0ef2412 (patch) | |
tree | d35617a5e44659d414d50f9350e28a76a02bbed7 /source/blender/editors/space_sequencer | |
parent | 4b257e956f4aad5c6dbb6b16db6f074e5c7319dd (diff) |
my last commit broke transforming metastrips, use find_id for scene lookup.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_add.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c index 7fcc2878fa4..b776b1acc97 100644 --- a/source/blender/editors/space_sequencer/sequencer_add.c +++ b/source/blender/editors/space_sequencer/sequencer_add.c @@ -1100,10 +1100,8 @@ static int sequencer_add_scene_strip_exec(bContext *C, wmOperator *op) channel= RNA_int_get(op->ptr, "channel"); RNA_string_get(op->ptr, "scene", sce_name); - - for(sce_seq= CTX_data_main(C)->scene.first; sce_seq; sce_seq= sce_seq->id.next) - if (strcmp(sce_seq->id.name+2, sce_name)==0) - break; + + sce_seq= find_id("SC", sce_name); if (sce_seq==NULL) { BKE_reportf(op->reports, RPT_ERROR, "Scene \"%s\" not found", sce_name); |