kockie69 / SquinkyVCV-main

GNU General Public License v3.0
24 stars 13 forks source link

VCV Rack crashes when you hookup, and Gate or V/OCT are connected #57

Closed kockie69 closed 2 years ago

kockie69 commented 2 years ago
    patchVOct(otherModuleWidget, hostWidget);
    patchGate(otherModuleWidget, hostWidget);
    patchModulator(otherModuleWidget, hostWidget);
kockie69 commented 2 years ago

Fixed,

    rack::app::CableWidget* cw = new rack::app::CableWidget;
    cw->inputPort = input;
    cw->outputPort = output;
    cw->color = APP->scene->rack->getNextCableColor();
    cw->updateCable();
    if (cw->isComplete())
        APP->scene->rack->addCable(cw);