VSE: Allow all strips to be used as modifier masks

It was requested to allow strips inside of meta strips to be used as
masks for modifiers. There is need for mask is to be shared between
multiple strips in multiple meta strips. More discussion is in #146970.

Pull Request: https://projects.blender.org/blender/blender/pulls/148097
This commit is contained in:
Richard Antalik
2025-10-15 20:08:28 +02:00
committed by Richard Antalik
parent 3926e01c4a
commit 078bc6a7c2

View File

@@ -159,18 +159,10 @@ void draw_mask_input_type_settings(const bContext *C, uiLayout *layout, PointerR
row->prop(ptr, "input_mask_type", UI_ITEM_R_EXPAND, IFACE_("Type"), ICON_NONE);
if (input_mask_type == STRIP_MASK_INPUT_STRIP) {
MetaStack *ms = meta_stack_active_get(ed);
PointerRNA sequences_object;
if (ms) {
sequences_object = RNA_pointer_create_discrete(
&sequencer_scene->id, &RNA_MetaStrip, ms->parent_strip);
}
else {
sequences_object = RNA_pointer_create_discrete(
&sequencer_scene->id, &RNA_SequenceEditor, ed);
}
PointerRNA sequences_object = RNA_pointer_create_discrete(
&sequencer_scene->id, &RNA_SequenceEditor, ed);
col->prop_search(
ptr, "input_mask_strip", &sequences_object, "strips", IFACE_("Mask"), ICON_NONE);
ptr, "input_mask_strip", &sequences_object, "strips_all", IFACE_("Mask"), ICON_NONE);
}
else {
col->prop(ptr, "input_mask_id", UI_ITEM_NONE, std::nullopt, ICON_NONE);