| 657 | } |
| 658 | |
| 659 | bool ScriptModulationMatrix::connectInternal(const String& sourceId, const String& targetId, bool addConnection) |
| 660 | { |
| 661 | for (auto s : sourceData) |
| 662 | { |
| 663 | if (s->mod->getId() == sourceId) |
| 664 | { |
| 665 | for (auto t : targetData) |
| 666 | { |
| 667 | if (t->modId == targetId) |
| 668 | { |
| 669 | if (t->connect(sourceId, addConnection)) |
| 670 | { |
| 671 | dynamic_cast<ScriptComponent*>(t->sc.getObject())->sendRepaintMessage(); |
| 672 | refreshBypassStates(); |
| 673 | return true; |
| 674 | } |
| 675 | } |
| 676 | } |
| 677 | } |
| 678 | } |
| 679 | |
| 680 | refreshBypassStates(); |
| 681 | return false; |
| 682 | } |
| 683 | |
| 684 | bool ScriptModulationMatrix::updateIntensityInternal(String source, String target, float intensityValue) |
| 685 | { |