13
0

Make simple 2-point gain envelopes considered interesting if they are not constant gain.

git-svn-id: svn://localhost/ardour2/branches/3.0@7509 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-27 02:10:59 +00:00
parent 9998ce310d
commit 4977924a6e

View File

@ -163,7 +163,8 @@ AudioRegionView::init (Gdk::Color const & basic_color, bool wfd)
}
/* make envelope visible if it has anything interesting in it */
if (audio_region()->envelope()->size() > 2) {
boost::shared_ptr<AutomationList> env = audio_region()->envelope ();
if (env->size() > 2 || (env->size() == 2 && env->front()->value != env->back()->value)) {
_flags |= EnvelopeVisible;
}