add option to skip guard points when adding new control points to a ControlList; add more debugging statements

This commit is contained in:
Paul Davis 2014-02-19 12:52:14 -05:00
parent d024b500a6
commit a70f914c51
3 changed files with 30 additions and 17 deletions

View file

@ -17,6 +17,9 @@
*/
#include <iostream>
#include "pbd/stacktrace.h"
#include "evoral/Control.hpp"
#include "evoral/ControlList.hpp"
@ -49,9 +52,13 @@ void
Control::set_double (double value, double frame, bool to_list)
{
_user_value = value;
/* if we're in a write pass, the automation watcher will determine the
values and add them to the list, so we we don't need to bother.
*/
if (to_list) {
_list->add (frame, value);
if (to_list && !_list->in_write_pass()) {
_list->add (frame, value, false);
}
}