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:
authorWilliam Reynish <billrey@me.com>2019-06-20 20:11:39 +0300
committerWilliam Reynish <billrey@me.com>2019-06-20 20:11:39 +0300
commit04b86c21bf522e8852a9695783c81989fddc2c50 (patch)
treeaf1f43b780f0b52bb6167ca5c61b248bbf7fe2e9 /source
parent966dbddf3d4a210df7bd81c500c3ec484a0918e2 (diff)
UI: Tweak Sequencer Sidebar panels
Even though we are in UI freeze, we agreed that this should be better, and so we are changing a few things: - Clearer separation of controls that affect the image transform vs the video - New Transform panel houses Flip X/Y, Offset and Crop - Flip X/Y now uses toggle buttons like we do for mirroring elsewhere (clearer + takes up less space) - Video panel only includes things that relate to playback, ie Playback Direction, Strobe etc. - Backwards/Forwards playback is now an enum rather than a toggle (we should always use enums when it's not an on/off switch) - Rename Input panel to Source - Just more immediately understandable and correct - Move Deinterlace here since it's source file dependent - Move Source panel to be a top level panel - Merge Info and Timecodes panels - Move Lock toggle to Info panel (was previously attached to name field which made no sense whatsoever) - Name field now uses full width and doesn't add redundant text in front of it - Re-arrange tabs to be Strip, Modifiers, Proxy & Cache, View - Strip and Modifiers should be together Reviewers: brecht, iss Differential Revision: https://developer.blender.org/D5098
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_sequencer.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index 4e7f9f51d12..3e3ef3a8f61 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -1957,6 +1957,12 @@ static void rna_def_filter_video(StructRNA *srna)
{0, NULL, 0, NULL, NULL},
};
+ static const EnumPropertyItem playback_direction_items[] = {
+ {0, "FORWARDS", 0, "Forwards", "Play clip forwards"},
+ {SEQ_REVERSE_FRAMES, "BACKWARDS", 0, "Backwards", "Play clip 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");
@@ -1983,9 +1989,10 @@ 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, "use_reverse_frames", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_REVERSE_FRAMES);
- RNA_def_property_ui_text(prop, "Flip Time", "Reverse frame order");
+ 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 clip forwards or backwards");
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);