Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-09-05 14:40:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-05 14:47:06 +0300
commit78256978279d66f38a9f7297176b6d10a265a315 (patch)
tree442ab9e2e5239624735e8dd5764c516076f16f7c /source
parentd0462dca907177c04e81c098f07f577f7a036918 (diff)
UI: use boolean for sequencer reverse frames
Revert part of 04b86c21bf522 The option to reverse frames is used elsewhere as a boolean which makes sense since reversing playback is a special case.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_sequencer.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index efb2fd376b3..1da29217db8 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -1958,12 +1958,6 @@ static void rna_def_filter_video(StructRNA *srna)
{0, NULL, 0, NULL, NULL},
};
- static const EnumPropertyItem playback_direction_items[] = {
- {0, "FORWARD", 0, "Forwards", "Play strip forwards"},
- {SEQ_REVERSE_FRAMES, "BACKWARD", 0, "Backwards", "Play strip backwards"},
- {0, NULL, 0, NULL, NULL},
- };
-
prop = RNA_def_property(srna, "use_deinterlace", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_FILTERY);
RNA_def_property_ui_text(prop, "Deinterlace", "Remove fields from video movies");
@@ -1990,10 +1984,9 @@ static void rna_def_filter_video(StructRNA *srna)
RNA_def_property_ui_text(prop, "Convert Float", "Convert input to float data");
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update");
- prop = RNA_def_property(srna, "playback_direction", PROP_ENUM, PROP_NONE); /* as an enum */
- RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag");
- RNA_def_property_enum_items(prop, playback_direction_items);
- RNA_def_property_ui_text(prop, "Playback Direction", "Play strip forwards or backwards");
+ prop = RNA_def_property(srna, "use_reverse_frames", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_REVERSE_FRAMES);
+ RNA_def_property_ui_text(prop, "Reverse Frames", "Reverse frame order");
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update");
prop = RNA_def_property(srna, "color_multiply", PROP_FLOAT, PROP_UNSIGNED);