do not thin() automation event list on load.

only thin() when writing automation. This fixes issues with
loading short x-fades (which can be stretched later).

TODO: thinning should not just drop, but interpolate and use
more elaborate logic, compared to A2/MB2 Curve::merge_nascent()
This commit is contained in:
Robin Gareus 2014-05-31 17:13:47 +02:00 committed by Paul Davis
parent b1bf1fe34c
commit a37a75a05c

View file

@ -346,8 +346,6 @@ AutomationList::deserialize_events (const XMLNode& node)
fast_simple_add (x, y);
}
thin ();
if (!ok) {
clear ();
error << _("automation list: cannot load coordinates from XML, all points ignored") << endmsg;
@ -410,9 +408,7 @@ AutomationList::set_state (const XMLNode& node, int version)
fast_simple_add (x, y);
}
thin ();
thaw ();
thaw ();
return 0;
}