Skip to content

Commit

Permalink
#565 Don't send virtual feedback if virtual controller mapping not ac…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
helgoboss committed Apr 15, 2022
1 parent cd8126f commit 60344b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/src/domain/main_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3062,7 +3062,10 @@ impl<EH: DomainEventHandler> Basics<EH> {
log_virtual_feedback_output(&self.instance_id, &value);
}
// Iterate over (controller) mappings with virtual targets.
for m in mappings_with_virtual_targets.values() {
for m in mappings_with_virtual_targets
.values()
.filter(|m| m.feedback_is_effectively_on())
{
// Should always be true.
if let Some(t) = m.virtual_target() {
if t.control_element() == value.control_element() {
Expand Down

0 comments on commit 60344b6

Please sign in to comment.