| 308 | } |
| 309 | |
| 310 | void GridModule::PostRepatch(PatchCableSource* cableSource, bool fromUserClick) |
| 311 | { |
| 312 | if (cableSource == mGridOutputCable) |
| 313 | { |
| 314 | auto* target = dynamic_cast<GridControlTarget*>(cableSource->GetTarget()); |
| 315 | if (target == mGridControlTarget) //patched into ourself |
| 316 | cableSource->Clear(); |
| 317 | else if (target) |
| 318 | target->SetGridController(this); |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | void GridModule::LoadLayout(const ofxJSONElement& moduleInfo) |
| 323 | { |
nothing calls this directly
no test coverage detected