| 161 | } |
| 162 | |
| 163 | void PatchNode::snapComponents(float snap) |
| 164 | { |
| 165 | for (auto& vertex : _vertices) |
| 166 | { |
| 167 | if (vertex.isSelected()) |
| 168 | { |
| 169 | auto& texcoord = vertex.getTexcoord(); |
| 170 | texcoord.x() = float_snapped(texcoord.x(), snap); |
| 171 | texcoord.y() = float_snapped(texcoord.y(), snap); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | _patch.updateTesselation(true); |
| 176 | } |
| 177 | |
| 178 | void PatchNode::mergeComponentsWith(const Vector2& center) |
| 179 | { |
nothing calls this directly
no test coverage detected