Update note colors when model changes.
This commit is contained in:
parent
4c0cebf7f9
commit
6a73fd337c
@ -1656,6 +1656,10 @@ MidiRegionView::update_note (Note* ev, bool update_ghost_regions)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user