Changes to allow python to do redraws through the timer operator, a reliable way...
[blender.git] / source / blender / makesrna / intern / rna_sequence.c
index b1ac02ae17fda3ff8a08847b232e2f623bd6d9ec..51e81d6dd3a7f9155ecda8b13e1620563188d945 100644 (file)
@@ -520,6 +520,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_ui_text(prop, "Channel", "Y position of the sequence strip.");
        RNA_def_property_int_funcs(prop, NULL, "rna_SequenceEditor_channel_set",NULL); // overlap test
        RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, NULL);