Skip to content

Commit

Permalink
Exclude more properties from the "Appearance" group
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-spa committed Aug 1, 2023
1 parent 1c1168c commit 27517cb
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/engraving/libmscore/property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,13 +603,22 @@ static std::set<Pid> _appearanceProperties;

const std::set<Pid>& appearanceProperties()
{
static std::set<Pid> excludedProperties {
Pid::POSITION_LINKED_TO_MASTER,
Pid::APPEARANCE_LINKED_TO_MASTER,
Pid::EXCLUDE_FROM_OTHER_PARTS,
Pid::PITCH,
Pid::TICK,
Pid::TPC1,
Pid::TPC2,
Pid::LINE,
};

if (_appearanceProperties.empty()) {
for (int i = 0; i < static_cast<int>(Pid::END); ++i) {
Pid propertyId = static_cast<Pid>(i);
bool isAppearanceProperty = !mu::contains(_positionProperties, propertyId)
&& propertyId != Pid::POSITION_LINKED_TO_MASTER
&& propertyId != Pid::APPEARANCE_LINKED_TO_MASTER
&& propertyId != Pid::EXCLUDE_FROM_OTHER_PARTS;
&& !mu::contains(excludedProperties, propertyId);
if (isAppearanceProperty) {
_appearanceProperties.insert(propertyId);
}
Expand Down

0 comments on commit 27517cb

Please sign in to comment.