Cleanup: Fix build warnings
This commit is contained in:
parent
925df8ef26
commit
5af7225816
|
@ -1601,7 +1601,7 @@ static int sequencer_add_duplicate_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
/* Handle duplicated strips: set active, select, ensure unique name and duplicate animation
|
||||
* data. */
|
||||
for (; seq; seq = seq->next) {
|
||||
if (STREQ(active_seq != NULL && seq->name, active_seq->name)) {
|
||||
if (active_seq != NULL && STREQ(seq->name, active_seq->name)) {
|
||||
SEQ_select_active_set(scene, seq);
|
||||
}
|
||||
seq->flag &= ~(SEQ_LEFTSEL + SEQ_RIGHTSEL + SEQ_LOCK);
|
||||
|
|
|
@ -45,7 +45,7 @@ int SEQ_time_find_next_prev_edit(struct Scene *scene,
|
|||
void SEQ_time_update_sequence(struct Scene *scene, struct Sequence *seq);
|
||||
void SEQ_time_update_sequence_bounds(struct Scene *scene, struct Sequence *seq);
|
||||
int SEQ_time_cmp_time_startdisp(const void *a, const void *b);
|
||||
bool SEQ_time_strip_intersects_frame(struct Sequence *seq, const int timeline_frame);
|
||||
bool SEQ_time_strip_intersects_frame(const struct Sequence *seq, const int timeline_frame);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -478,7 +478,7 @@ void seq_time_gap_info_get(const Scene *scene,
|
|||
* \param timeline_frame: absolute frame position
|
||||
* \return true if strip intersects with timeline frame.
|
||||
*/
|
||||
bool SEQ_time_strip_intersects_frame(Sequence *seq, const int timeline_frame)
|
||||
bool SEQ_time_strip_intersects_frame(const Sequence *seq, const int timeline_frame)
|
||||
{
|
||||
return (seq->startdisp <= timeline_frame) && (seq->enddisp > timeline_frame);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue