| 133 | } |
| 134 | |
| 135 | void IModulator::OnRemovedFrom(IUIControl* control) |
| 136 | { |
| 137 | if (mTargetCable) |
| 138 | { |
| 139 | auto& cables = mTargetCable->GetPatchCables(); |
| 140 | for (size_t i = 0; i < mTargets.size(); ++i) |
| 141 | { |
| 142 | for (auto& cable : cables) |
| 143 | { |
| 144 | if (cable->GetTarget() == control && cable->GetTarget() == mTargets[i].mUIControlTarget) |
| 145 | { |
| 146 | mTargetCable->RemovePatchCable(cable); |
| 147 | break; |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | OnModulatorRepatch(); |
| 153 | } |
| 154 | |
| 155 | void IModulator::InitializeRange(float currentValue, float min, float max, FloatSlider::Mode sliderMode) |
| 156 | { |
no test coverage detected