Fix crash when moving retimed sound strip
Crash happened, when strip start frame has negative value. Sound properties can not be animated in negative frames.
This commit is contained in:
@@ -797,6 +797,9 @@ void SEQ_retiming_sound_animation_data_set(const Scene *scene, const Sequence *s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
const int range_start = max_ii(0, range.start);
|
||||||
|
const int range_end = max_ii(0, range.end);
|
||||||
|
|
||||||
BKE_sound_set_scene_sound_pitch_constant_range(
|
BKE_sound_set_scene_sound_pitch_constant_range(
|
||||||
seq->scene_sound, range.start, range.end, range.speed);
|
seq->scene_sound, range.start, range.end, range.speed);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user