| 250 | } |
| 251 | |
| 252 | void ViewerWidget::stopCameraPath(int id) { |
| 253 | if(camera()->keyFrameInterpolator(id) && camera()->keyFrameInterpolator(id)->interpolationIsStarted()) { |
| 254 | disconnect(camera()->keyFrameInterpolator(id), SIGNAL(interpolated()), this, SLOT(update())); |
| 255 | disconnect(camera()->keyFrameInterpolator(id), SIGNAL(interpolated()), this, SLOT(cameraPathInterpolated())); |
| 256 | disconnect(camera()->keyFrameInterpolator(id), SIGNAL(endReached()), this, SLOT(cameraPathFinished())); |
| 257 | camera()->keyFrameInterpolator(id)->stopInterpolation(); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | void ViewerWidget::cameraPathFinished() { |
| 262 | if(camera()->keyFrameInterpolator(m_current_camera_path)) { |
nothing calls this directly
no test coverage detected