Use a dedicated Canvas Group for MRV

This fixes rendering of opaque MIDI regions (previously
MIDI regions were always transparent). This change provides a
way to "flatten" layered MIDI regions, while still allowing
to show the note-line and grid behind the regions.
This commit is contained in:
Robin Gareus 2022-12-09 01:36:15 +01:00
parent 1efa5e9a55
commit f003bee985
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 24 additions and 12 deletions

View file

@ -3687,9 +3687,9 @@ MidiRegionView::note_mouse_position (float x_fraction, float /*y_fraction*/, boo
uint32_t
MidiRegionView::get_fill_color() const
{
const std::string mod_name = (_dragging ? "dragging region" :
const std::string mod_name = _dragging ? "dragging region" :
trackview.editor().internal_editing() ? "editable region" :
"midi frame base");
(_region->opaque() && !_region->muted ()) ? "opaque region base" : "transparent region base";
if (_selected) {