Code cleanup / Sequencer:
* Remove "use_frame_blend" from RNA and UI file, not used anywhere in the code, also mark SEQ_SPEED_BLEND as deprecated.
This commit is contained in:
@@ -514,9 +514,6 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
|
||||
layout.prop(strip, "speed_factor", text="Frame number")
|
||||
layout.prop(strip, "scale_to_length")
|
||||
|
||||
#doesn't work currently
|
||||
#layout.prop(strip, "use_frame_blend")
|
||||
|
||||
elif strip.type == 'TRANSFORM':
|
||||
layout = self.layout
|
||||
col = layout.column()
|
||||
|
||||
@@ -314,7 +314,7 @@ typedef struct SequencerScopes {
|
||||
|
||||
/* SpeedControlVars->flags */
|
||||
#define SEQ_SPEED_INTEGRATE 1
|
||||
#define SEQ_SPEED_BLEND 2
|
||||
/* #define SEQ_SPEED_BLEND 2 */ /* DEPRECATED */
|
||||
#define SEQ_SPEED_COMPRESS_IPO_Y 4
|
||||
|
||||
/* ***************** SEQUENCE ****************** */
|
||||
|
||||
@@ -2144,11 +2144,6 @@ static void rna_def_speed_control(StructRNA *srna)
|
||||
RNA_def_property_ui_text(prop, "Use as speed", "Interpret the value as speed instead of a frame number");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_frame_blend", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_BLEND);
|
||||
RNA_def_property_ui_text(prop, "Frame Blending", "Blend two frames into the target for a smoother result");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "scale_to_length", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flags", SEQ_SPEED_COMPRESS_IPO_Y);
|
||||
RNA_def_property_ui_text(prop, "Scale to length", "Scale values from 0.0 to 1.0 to target sequence length");
|
||||
|
||||
Reference in New Issue
Block a user