13
0

Update note colors when model changes.

This commit is contained in:
David Robillard 2014-12-28 16:06:21 -05:00
parent 4c0cebf7f9
commit 6a73fd337c

View File

@ -1655,7 +1655,11 @@ MidiRegionView::update_note (Note* ev, bool update_ghost_regions)
/* outline all edges */
ev->set_outline_all ();
}
// Update color in case velocity has changed
ev->set_fill_color(ev->base_color());
ev->set_outline_color(ev->calculate_outline(ev->base_color(), ev->selected()));
if (update_ghost_regions) {
for (std::vector<GhostRegion*>::iterator i = ghosts.begin(); i != ghosts.end(); ++i) {
MidiGhostRegion* gr = dynamic_cast<MidiGhostRegion*> (*i);