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
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #47962, It's possible to set a Sound strip as a modifier Mask
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}