292
294
seq->machine = value;
294
if (BKE_sequence_test_overlap(seqbase, seq) ) {
296
if (BKE_sequence_test_overlap(seqbase, seq)) {
295
297
BKE_sequence_base_shuffle(seqbase, seq, scene); /* XXX - BROKEN!, uses context seqbasep */
297
299
BKE_sequencer_sort(scene);
602
604
StripProxy *proxy = (StripProxy *)(ptr->data);
603
605
BLI_split_dirfile(value, proxy->dir, proxy->file, sizeof(proxy->dir), sizeof(proxy->file));
607
IMB_free_anim(proxy->anim);
606
612
static void rna_Sequence_proxy_filepath_get(PointerRNA *ptr, char *value)
884
890
ed->over_ofs = value;
888
static void rna_WipeSequence_angle_set(PointerRNA *ptr, float value)
890
Sequence *seq = (Sequence *)(ptr->data);
891
value = RAD2DEGF(value);
892
CLAMP(value, -90.0f, 90.0f);
893
((WipeVars *)seq->effectdata)->angle = value;
896
static float rna_WipeSequence_angle_get(PointerRNA *ptr)
898
Sequence *seq = (Sequence *)(ptr->data);
900
return DEG2RADF(((WipeVars *)seq->effectdata)->angle);
903
893
static int modifier_seq_cmp_cb(Sequence *seq, void *arg_pt)
905
895
SequenceSearchData *data = arg_pt;
1421
1408
prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE);
1422
1409
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_MUTE);
1410
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, true);
1423
1411
RNA_def_property_ui_text(prop, "Mute", "");
1424
1412
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_mute_update");
1426
1414
prop = RNA_def_property(srna, "lock", PROP_BOOLEAN, PROP_NONE);
1427
1415
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_LOCK);
1416
RNA_def_property_ui_icon(prop, ICON_UNLOCKED, true);
1428
1417
RNA_def_property_ui_text(prop, "Lock", "Lock strip so that it can't be transformed");
1429
1418
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, NULL);
2042
2031
"Width of the blur edge, in percentage relative to the image size");
2043
2032
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
2045
#if 1 /* expose as radians */
2046
2034
prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE);
2047
RNA_def_property_float_funcs(prop, "rna_WipeSequence_angle_get", "rna_WipeSequence_angle_set", NULL);
2048
RNA_def_property_range(prop, DEG2RAD(-90.0), DEG2RAD(90.0));
2050
prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_NONE);
2051
RNA_def_property_float_sdna(prop, NULL, "angle");
2052
RNA_def_property_range(prop, -90.0f, 90.0f);
2035
RNA_def_property_range(prop, DEG2RADF(-90.0f), DEG2RADF(90.0f));
2054
2036
RNA_def_property_ui_text(prop, "Angle", "Edge angle");
2055
2037
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
2057
2039
prop = RNA_def_property(srna, "direction", PROP_ENUM, PROP_NONE);
2058
2040
RNA_def_property_enum_sdna(prop, NULL, "forward");
2059
2041
RNA_def_property_enum_items(prop, wipe_direction_items);
2148
2130
prop = RNA_def_property(srna, "translate_start_x", PROP_FLOAT, PROP_NONE);
2149
2131
RNA_def_property_float_sdna(prop, NULL, "xIni");
2150
2132
RNA_def_property_ui_text(prop, "Translate X", "");
2151
RNA_def_property_ui_range(prop, -500.0f, 500.0f, 3, 6);
2133
RNA_def_property_ui_range(prop, -4000.0f, 4000.0f, 3, 6);
2152
2134
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
2154
2136
prop = RNA_def_property(srna, "translate_start_y", PROP_FLOAT, PROP_NONE);
2155
2137
RNA_def_property_float_sdna(prop, NULL, "yIni");
2156
2138
RNA_def_property_ui_text(prop, "Translate Y", "");
2157
RNA_def_property_ui_range(prop, -500.0f, 500.0f, 3, 6);
2139
RNA_def_property_ui_range(prop, -4000.0f, 4000.0f, 3, 6);
2158
2140
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_update");
2160
2142
prop = RNA_def_property(srna, "rotation_start", PROP_FLOAT, PROP_NONE);