IO: Add support for multiple drag-n-drop files #107230

Merged
Brecht Van Lommel merged 20 commits from guishe/blender:dragndrop-files into main 2023-12-12 18:46:22 +01:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 7aede01d90 - Show all commits

View File

@ -765,7 +765,8 @@ wmDragPath *WM_drag_create_path_data(blender::Span<const char *> _paths)
const char *ext = BLI_path_extension(_paths[0]);
blender::Vector<std::string> paths;
for (auto path : _paths) {
if (STREQ(ext, BLI_path_extension(path))) {
const char *test_ext = BLI_path_extension(path);
if (ext == test_ext || (ext && test_ext && STREQ(ext, test_ext))) {
paths.append(path);
}
}