| 316 | } |
| 317 | |
| 318 | static void glfw_drop_callback( [[maybe_unused]] GLFWwindow *window, int count, const char **filenames ) |
| 319 | { |
| 320 | std::vector<std::filesystem::path> paths( count ); |
| 321 | for ( int i = 0; i < count; ++i ) |
| 322 | { |
| 323 | paths[i] = MR::pathFromUtf8( filenames[i] ); |
| 324 | } |
| 325 | auto viewer = &MR::getViewerInstance(); |
| 326 | viewer->emplaceEvent( "Drop", [paths, viewer] () |
| 327 | { |
| 328 | viewer->dragDrop( paths ); |
| 329 | } ); |
| 330 | viewer->postEmptyEvent(); |
| 331 | } |
| 332 | |
| 333 | namespace MR |
| 334 | { |
nothing calls this directly
no test coverage detected