diff options
author | David Robillard <d@drobilla.net> | 2014-11-16 02:09:33 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-16 22:35:45 -0500 |
commit | b4fcdbb100ec3be331e7bd8b51a86cc198448397 (patch) | |
tree | a80159bb0c6dd7afedc6175f774d96acd7b61c6a /libs/evoral/src/ControlList.cpp | |
parent | d63161426f256c293c92b73f1be4b375f962d298 (diff) |
Don't add origin value to MIDI controller regions on initial insert.
This should probably hijack the same modifier as the guard points and work the
same on all automation tracks, but I did it this way to not change behaviour of
track automation where a default is much more reasonable.
Diffstat (limited to 'libs/evoral/src/ControlList.cpp')
-rw-r--r-- | libs/evoral/src/ControlList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp index 6717261713..bc8626c535 100644 --- a/libs/evoral/src/ControlList.cpp +++ b/libs/evoral/src/ControlList.cpp @@ -477,7 +477,7 @@ ControlList::editor_add (double when, double value) } void -ControlList::add (double when, double value, bool with_guards) +ControlList::add (double when, double value, bool with_guards, bool with_default) { /* this is for making changes from some kind of user interface or control surface (GUI, MIDI, OSC etc) @@ -494,7 +494,7 @@ ControlList::add (double when, double value, bool with_guards) ControlEvent cp (when, 0.0f); iterator insertion_point; - if (_events.empty()) { + if (_events.empty() && with_default) { /* as long as the point we're adding is not at zero, * add an "anchor" point there. |