| 82 | } |
| 83 | |
| 84 | void MorphPluginParameters::setControlPointComponent(ControlPointComponent* component) { |
| 85 | component->setListener(this); |
| 86 | this->controlPointComponent = component; |
| 87 | this->setPointsFromState(getState(), this->lastPointsV2); |
| 88 | |
| 89 | if(!lastPointsV2.points.isEmpty()) { |
| 90 | component->setSourcePoints(lastPointsV2.points); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | void MorphPluginParameters::setPointsFromState(ValueTree state, ControlPoints &controlPoints) { |
| 95 | auto xmlStr = state.toXmlString(); |
no test coverage detected