diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-16 20:58:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-16 20:58:50 +0300 |
commit | 57308d838262f3d059b688aa31718af25fb21abb (patch) | |
tree | 2bb8a3119d1eeace4035d522adf8bb47cbf23fbd /source/blender/makesrna | |
parent | 24a0eececfaf35ffc19053266254b6d5799c87a1 (diff) |
[#21102] Nonunique ID names in sequencer!
now uniqute names are ensured with recursive name checking on the scene
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_sequencer.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c index 2346b0c3033..17dbbbf9d05 100644 --- a/source/blender/makesrna/intern/rna_sequencer.c +++ b/source/blender/makesrna/intern/rna_sequencer.c @@ -235,22 +235,10 @@ static int rna_Sequence_name_length(PointerRNA *ptr) static void rna_Sequence_name_set(PointerRNA *ptr, const char *value) { Scene *scene= (Scene*)ptr->id.data; -// Editing *ed= seq_give_editing(scene, FALSE); Sequence *seq= (Sequence*)ptr->data; -// Sequence *iseq; BLI_strncpy(seq->name+2, value, sizeof(seq->name)-2); - seqUniqueName(&scene->ed->seqbase, seq); - - // TODO, unique name for all meta's - /* - SEQ_BEGIN(ed, iseq) { - if(iseq->seqbase.first) - seqUniqueName(&iseq->seqbase, seq); - - } - SEQ_END - */ + seqbase_unique_name_recursive(&scene->ed->seqbase, seq); } static StructRNA* rna_Sequence_refine(struct PointerRNA *ptr) |