[GraphEditor] Convert file to string before testing its extension

This fixes the "Property 'endsWith' of object file xxx is not a function"
warning.
This commit is contained in:
Candice Bentéjac 2025-01-09 19:19:20 +01:00
parent e214868d81
commit bfb9ee3272

View file

@ -992,7 +992,7 @@ Item {
nbDraggedFiles = drag.urls.length
drag.urls.forEach(function(file) {
if (file.endsWith(".mg")) {
if (String(file).endsWith(".mg")) {
nbMeshroomScenes++
}
})