mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 09:47:20 +02:00
[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:
parent
e214868d81
commit
bfb9ee3272
1 changed files with 1 additions and 1 deletions
|
@ -992,7 +992,7 @@ Item {
|
|||
nbDraggedFiles = drag.urls.length
|
||||
|
||||
drag.urls.forEach(function(file) {
|
||||
if (file.endsWith(".mg")) {
|
||||
if (String(file).endsWith(".mg")) {
|
||||
nbMeshroomScenes++
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue