| 1445 | } |
| 1446 | |
| 1447 | bool ScriptModulationMatrix::ModulatorTargetData::queryFunction(int index, bool checkTicked) const |
| 1448 | { |
| 1449 | if (checkTicked) |
| 1450 | { |
| 1451 | auto sm = parent->sourceData[index]->mod.get(); |
| 1452 | |
| 1453 | return forEach(sm, [index](Modulator* sm, ModulatorTargetData& data, GlobalModulator* gm) |
| 1454 | { |
| 1455 | return gm->getOriginalModulator() == sm; |
| 1456 | }); |
| 1457 | } |
| 1458 | else |
| 1459 | { |
| 1460 | auto sm = parent->sourceData[index]->mod.get(); |
| 1461 | |
| 1462 | return forEach(sm, [](Modulator*, ModulatorTargetData& d, GlobalModulator* gm) |
| 1463 | { |
| 1464 | return !gm->isConnected(); |
| 1465 | }); |
| 1466 | } |
| 1467 | } |
| 1468 | |
| 1469 | bool ScriptModulationMatrix::ModulatorTargetData::forEach(Modulator* sourceMod, const IteratorFunction& f) const |
| 1470 | { |
no test coverage detected