Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer.c
| Show First 20 Lines • Show All 868 Lines • ▼ Show 20 Lines | static void rna_Sequence_reopen_files_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| BKE_sequencer_free_imbuf(scene, &ed->seqbase, false); | BKE_sequencer_free_imbuf(scene, &ed->seqbase, false); | ||||
| rna_Sequence_invalidate_raw_update(bmain, scene, ptr); | rna_Sequence_invalidate_raw_update(bmain, scene, ptr); | ||||
| if (RNA_struct_is_a(ptr->type, &RNA_SoundSequence)) { | if (RNA_struct_is_a(ptr->type, &RNA_SoundSequence)) { | ||||
| BKE_sequencer_update_sound_bounds(scene, ptr->data); | BKE_sequencer_update_sound_bounds(scene, ptr->data); | ||||
| } | } | ||||
| } | } | ||||
| static void rna_Sequence_mute_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | |||||
| { | |||||
| Scene *scene = (Scene *)ptr->owner_id; | |||||
| DEG_id_tag_update(&scene->id, ID_RECALC_SEQUENCER_STRIPS); | |||||
| } | |||||
| static void rna_Sequence_filepath_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) | static void rna_Sequence_filepath_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| { | { | ||||
| Scene *scene = (Scene *)ptr->owner_id; | Scene *scene = (Scene *)ptr->owner_id; | ||||
| Sequence *seq = (Sequence *)(ptr->data); | Sequence *seq = (Sequence *)(ptr->data); | ||||
| BKE_sequence_reload_new_file(bmain, scene, seq, true); | BKE_sequence_reload_new_file(bmain, scene, seq, true); | ||||
| BKE_sequence_calc(scene, seq); | BKE_sequence_calc(scene, seq); | ||||
| rna_Sequence_invalidate_raw_update(bmain, scene, ptr); | rna_Sequence_invalidate_raw_update(bmain, scene, ptr); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 793 Lines • ▼ Show 20 Lines | static void rna_def_sequence(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Right Handle Selected", ""); | RNA_def_property_ui_text(prop, "Right Handle Selected", ""); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER | NA_SELECTED, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER | NA_SELECTED, NULL); | ||||
| prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_MUTE); | RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_MUTE); | ||||
| RNA_def_property_ui_icon(prop, ICON_CHECKBOX_HLT, -1); | RNA_def_property_ui_icon(prop, ICON_CHECKBOX_HLT, -1); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Mute", "Disable strip so that it cannot be viewed in the output"); | prop, "Mute", "Disable strip so that it cannot be viewed in the output"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_mute_update"); | RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); | ||||
| prop = RNA_def_property(srna, "lock", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "lock", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_LOCK); | RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_LOCK); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_icon(prop, ICON_UNLOCKED, true); | RNA_def_property_ui_icon(prop, ICON_UNLOCKED, true); | ||||
| RNA_def_property_ui_text(prop, "Lock", "Lock strip so that it cannot be transformed"); | RNA_def_property_ui_text(prop, "Lock", "Lock strip so that it cannot be transformed"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, NULL); | ||||
| ▲ Show 20 Lines • Show All 1,577 Lines • Show Last 20 Lines | |||||