mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
Tempo ramps - don't allow cross-dragging the first meter.
This commit is contained in:
parent
06f294fa18
commit
462d08acbb
1 changed files with 5 additions and 0 deletions
|
|
@ -1998,6 +1998,11 @@ TempoMap::solve_map (Metrics& imaginary, TempoSection* section, const double& pu
|
|||
void
|
||||
TempoMap::solve_map (Metrics& imaginary, MeterSection* section, const framepos_t& frame)
|
||||
{
|
||||
/* disallow moving first meter past any subsequent one, and any movable meter before the first one */
|
||||
const MeterSection* other = &meter_section_at_locked (frame);
|
||||
if ((!section->movable() && other->movable()) || (!other->movable() && section->movable() && other->frame() >= frame)) {
|
||||
return;
|
||||
}
|
||||
MeterSection* prev_m = 0;
|
||||
|
||||
if (!section->movable()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue