MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / PostRepatch

Method PostRepatch

Source/GridModule.cpp:310–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void 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
322void GridModule::LoadLayout(const ofxJSONElement& moduleInfo)
323{

Callers

nothing calls this directly

Calls 3

SetGridControllerMethod · 0.80
GetTargetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected