diff options
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 9d158761a21..0583cdeb1bb 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -3510,6 +3510,21 @@ static void rna_def_sequencer_tool_settings(BlenderRNA *brna) {0, NULL, 0, NULL, NULL}, }; + static const EnumPropertyItem scale_overlap_modes[] = { + {SEQ_OVERLAP_EXPAND, "EXPAND", 0, "Expand", "Move strips so transformed strips fits"}, + {SEQ_OVERLAP_OVERWRITE, + "OVERWRITE", + 0, + "Overwrite", + "Trim or split strips to resolve overlap"}, + {SEQ_OVERLAP_SHUFFLE, + "SHUFFLE", + 0, + "Shuffle", + "Move transformed strips to nearest free space to resolve overlap"}, + {0, NULL, 0, NULL, NULL}, + }; + srna = RNA_def_struct(brna, "SequencerToolSettings", NULL); RNA_def_struct_path_func(srna, "rna_SequencerToolSettings_path"); RNA_def_struct_ui_text(srna, "Sequencer Tool Settings", ""); @@ -3548,6 +3563,11 @@ static void rna_def_sequencer_tool_settings(BlenderRNA *brna) RNA_def_property_int_default(prop, 15); RNA_def_property_ui_range(prop, 0, 50, 1, 1); RNA_def_property_ui_text(prop, "Snapping Distance", "Maximum distance for snapping in pixels"); + + /* Transform overlap handling. */ + prop = RNA_def_property(srna, "overlap_mode", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_items(prop, scale_overlap_modes); + RNA_def_property_ui_text(prop, "Overlap Mode", "How to resolve overlap after transformation"); } static void rna_def_unified_paint_settings(BlenderRNA *brna) |