Fix T47962: It's possible to set a Sound strip as a modifier Mask.

This commit is contained in:
Bastien Montagne 2016-03-27 13:01:58 +02:00
parent fb9315ce2a
commit ce71e2e789

@ -1027,8 +1027,9 @@ static int rna_SequenceModifier_otherSequence_poll(PointerRNA *ptr, PointerRNA v
Sequence *seq = sequence_get_by_modifier(ed, ptr->data);
Sequence *cur = (Sequence *) value.data;
if (seq == cur)
if ((seq == cur) || (cur->type == SEQ_TYPE_SOUND_RAM)) {
return false;
}
return true;
}