Don't check unspecified CC conditions
This commit is contained in:
parent
37613d528c
commit
44d1ded4d5
1 changed files with 6 additions and 1 deletions
|
|
@ -147,7 +147,12 @@ void Layer::updateCCState(int ccNumber, float ccValue) noexcept
|
||||||
sostenutoPressed_ = newState;
|
sostenutoPressed_ = newState;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (region.ccConditions.getWithDefault(ccNumber).containsWithEnd(ccValue))
|
const auto conditions = region.ccConditions.get(ccNumber);
|
||||||
|
|
||||||
|
if (!conditions)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (conditions->containsWithEnd(ccValue))
|
||||||
ccSwitched_.set(ccNumber, true);
|
ccSwitched_.set(ccNumber, true);
|
||||||
else
|
else
|
||||||
ccSwitched_.set(ccNumber, false);
|
ccSwitched_.set(ccNumber, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue