| 383 | } |
| 384 | |
| 385 | void Project::LoadKeyframes(agi::fs::path path) { |
| 386 | try { |
| 387 | DoLoadKeyframes(path); |
| 388 | } |
| 389 | catch (agi::fs::FileSystemError const& e) { |
| 390 | ShowError(e.GetMessage()); |
| 391 | config::mru->Remove("Keyframes", path); |
| 392 | } |
| 393 | catch (agi::keyframe::KeyframeFormatParseError const& e) { |
| 394 | ShowError("Failed to parse keyframes file: " + e.GetMessage()); |
| 395 | config::mru->Remove("Keyframes", path); |
| 396 | } |
| 397 | catch (agi::keyframe::UnknownKeyframeFormatError const& e) { |
| 398 | ShowError("Keyframes file in unknown format: " + e.GetMessage()); |
| 399 | config::mru->Remove("Keyframes", path); |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | void Project::CloseKeyframes() { |
| 404 | keyframes = video_provider ? video_provider->GetKeyFrames() : std::vector<int>{}; |
no test coverage detected