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:
parent
9998ce310d
commit
4977924a6e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user