Skip to content

Commit

Permalink
import hidden instruments as hidden staves (1.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella authored and Jojo-Schmitz committed Jul 6, 2023
1 parent 8de6d84 commit 78b1dba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engraving/rw/read114/read114.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3161,6 +3161,13 @@ Err Read114::readScore(Score* score, XmlReader& e, ReadInOutData* out)

for (Part* p : masterScore->parts()) {
p->updateHarmonyChannels(false);
if (!p->show()) {
// convert hidden instruments into hidden staves, to preserve playback
p->setShow(true);
for (Staff* s : p->staves()) {
s->setVisible(false);
}
}
}

masterScore->rebuildMidiMapping();
Expand Down

0 comments on commit 78b1dba

Please sign in to comment.