Fix T38672: Can't select strips inside a Meta on the Mask Modifier
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Feb 2014 10:01:16 +0000 (16:01 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 18 Feb 2014 10:01:16 +0000 (16:01 +0600)
release/scripts/startup/bl_ui/space_sequencer.py

index fcd70dd9236151d7353264c673509208b2ec3978..94173055c0d6e8df0e9dab7de575fa87ff7730ee 100644 (file)
@@ -954,7 +954,10 @@ class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel):
                 row.prop(mod, "input_mask_type", expand=True)
 
                 if mod.input_mask_type == 'STRIP':
                 row.prop(mod, "input_mask_type", expand=True)
 
                 if mod.input_mask_type == 'STRIP':
-                    box.prop_search(mod, "input_mask_strip", sequencer, "sequences", text="Mask")
+                    sequences_object = sequencer
+                    if len(sequencer.meta_stack):
+                        sequences_object = sequencer.meta_stack[-1]
+                    box.prop_search(mod, "input_mask_strip", sequences_object, "sequences", text="Mask")
                 else:
                     box.prop(mod, "input_mask_id")
 
                 else:
                     box.prop(mod, "input_mask_id")