Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer.c
| Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| Sequence *seq = (Sequence *)ptr->data; | Sequence *seq = (Sequence *)ptr->data; | ||||
| Scene *scene = (Scene *)ptr->owner_id; | Scene *scene = (Scene *)ptr->owner_id; | ||||
| SEQ_relations_invalidate_cache_composite(scene, seq); | SEQ_relations_invalidate_cache_composite(scene, seq); | ||||
| seq->endofs = value; | seq->endofs = value; | ||||
| } | } | ||||
| static void rna_Sequence_frame_still_start_set(PointerRNA *ptr, int value) | |||||
| { | |||||
| Sequence *seq = (Sequence *)ptr->data; | |||||
| Scene *scene = (Scene *)ptr->owner_id; | |||||
| SEQ_relations_invalidate_cache_composite(scene, seq); | |||||
| seq->startstill = value; | |||||
| } | |||||
| static void rna_Sequence_frame_still_end_set(PointerRNA *ptr, int value) | |||||
| { | |||||
| Sequence *seq = (Sequence *)ptr->data; | |||||
| Scene *scene = (Scene *)ptr->owner_id; | |||||
| SEQ_relations_invalidate_cache_composite(scene, seq); | |||||
| seq->endstill = value; | |||||
| } | |||||
| static void rna_Sequence_anim_startofs_final_set(PointerRNA *ptr, int value) | static void rna_Sequence_anim_startofs_final_set(PointerRNA *ptr, int value) | ||||
| { | { | ||||
| Sequence *seq = (Sequence *)ptr->data; | Sequence *seq = (Sequence *)ptr->data; | ||||
| Scene *scene = (Scene *)ptr->owner_id; | Scene *scene = (Scene *)ptr->owner_id; | ||||
| seq->anim_startofs = MIN2(value, seq->len + seq->anim_startofs); | seq->anim_startofs = MIN2(value, seq->len + seq->anim_startofs); | ||||
| SEQ_add_reload_new_file(G.main, scene, seq, false); | SEQ_add_reload_new_file(G.main, scene, seq, false); | ||||
| ▲ Show 20 Lines • Show All 1,627 Lines • ▼ Show 20 Lines | static void rna_def_sequence(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "frame_offset_end", PROP_INT, PROP_TIME); | prop = RNA_def_property(srna, "frame_offset_end", PROP_INT, PROP_TIME); | ||||
| RNA_def_property_int_sdna(prop, NULL, "endofs"); | RNA_def_property_int_sdna(prop, NULL, "endofs"); | ||||
| // RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */ | // RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */ | ||||
| RNA_def_property_ui_text(prop, "End Offset", ""); | RNA_def_property_ui_text(prop, "End Offset", ""); | ||||
| RNA_def_property_int_funcs( | RNA_def_property_int_funcs( | ||||
| prop, NULL, "rna_Sequence_frame_offset_end_set", "rna_Sequence_frame_offset_end_range"); | prop, NULL, "rna_Sequence_frame_offset_end_set", "rna_Sequence_frame_offset_end_range"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_frame_change_update"); | RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_frame_change_update"); | ||||
| prop = RNA_def_property(srna, "frame_still_start", PROP_INT, PROP_TIME); | |||||
| RNA_def_property_int_sdna(prop, NULL, "startstill"); | |||||
| // RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */ | |||||
| RNA_def_property_range(prop, 0, MAXFRAME); | |||||
| RNA_def_property_ui_text(prop, "Start Still", ""); | |||||
| RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_frame_still_start_set", NULL); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_frame_change_update"); | |||||
| prop = RNA_def_property(srna, "frame_still_end", PROP_INT, PROP_TIME); | |||||
| RNA_def_property_int_sdna(prop, NULL, "endstill"); | |||||
| // RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */ | |||||
| RNA_def_property_range(prop, 0, MAXFRAME); | |||||
| RNA_def_property_ui_text(prop, "End Still", ""); | |||||
| RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_frame_still_end_set", NULL); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_frame_change_update"); | |||||
| prop = RNA_def_property(srna, "channel", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "channel", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_sdna(prop, NULL, "machine"); | RNA_def_property_int_sdna(prop, NULL, "machine"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_range(prop, 1, MAXSEQ); | RNA_def_property_range(prop, 1, MAXSEQ); | ||||
| RNA_def_property_ui_text(prop, "Channel", "Y position of the sequence strip"); | RNA_def_property_ui_text(prop, "Channel", "Y position of the sequence strip"); | ||||
| RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_channel_set", NULL); /* overlap test */ | RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_channel_set", NULL); /* overlap test */ | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_preprocessed_update"); | ||||
| ▲ Show 20 Lines • Show All 1,532 Lines • Show Last 20 Lines | |||||