diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-02-11 18:36:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-02-11 18:36:33 +0300 |
commit | 2613bfadb26532335c5b78552c6250b903335d52 (patch) | |
tree | c2211a2638b882d26eb5ed1278ec0dbb86a7050b /source/blender/makesrna/intern/rna_sequencer.c | |
parent | 3b5eac548fe13e2a93ae6a8dedd4c632edf950a0 (diff) |
RNA: sequencer channel range was incorrect
Broke since 2.4x, zero sequence channels shouldn't be allowed
Diffstat (limited to 'source/blender/makesrna/intern/rna_sequencer.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c index f628112a19a..927e77960d7 100644 --- a/source/blender/makesrna/intern/rna_sequencer.c +++ b/source/blender/makesrna/intern/rna_sequencer.c @@ -1496,7 +1496,7 @@ static void rna_def_sequence(BlenderRNA *brna) prop = RNA_def_property(srna, "channel", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "machine"); - RNA_def_property_range(prop, 0, MAXSEQ - 1); + RNA_def_property_range(prop, 1, MAXSEQ); RNA_def_property_ui_text(prop, "Channel", "Y position of the sequence strip"); RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_channel_set", NULL); /* overlap test */ RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update"); |