| 235 | |
| 236 | |
| 237 | math::Vec CableWidget::getOutputPos() { |
| 238 | if (outputPort) { |
| 239 | return outputPort->getRelativeOffset(outputPort->box.zeroPos().getCenter(), APP->scene->rack); |
| 240 | } |
| 241 | else if (hoveredOutputPort) { |
| 242 | return hoveredOutputPort->getRelativeOffset(hoveredOutputPort->box.zeroPos().getCenter(), APP->scene->rack); |
| 243 | } |
| 244 | else { |
| 245 | return APP->scene->rack->getMousePos(); |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | |
| 250 | void CableWidget::mergeJson(json_t* rootJ) { |
nothing calls this directly
no test coverage detected