Cleanup: break early out of rna_SeqTimelineChannel_owner_get

Once the channel was found the for-loop kept searching.
This commit is contained in:
Campbell Barton 2023-07-10 12:17:38 +10:00
parent 0b5eb86e2c
commit 116861dc2f

@ -1476,6 +1476,7 @@ static Sequence *rna_SeqTimelineChannel_owner_get(Editing *ed, SeqTimelineChanne
} }
if (BLI_findindex(&seq->channels, channel) != -1) { if (BLI_findindex(&seq->channels, channel) != -1) {
channel_owner = seq; channel_owner = seq;
break;
} }
} }