mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
Merge pull request #2680 from alicevision/fix/jsParamInjection
[qml] Fix QML warnings when dropping project files into the Graph Editor
This commit is contained in:
commit
5a66087eac
2 changed files with 3 additions and 3 deletions
|
@ -1281,7 +1281,7 @@ Page {
|
|||
_reconstruction.forceNodesStatusUpdate();
|
||||
computeManager.submit(nodes)
|
||||
}
|
||||
onFilesDropped: {
|
||||
onFilesDropped: function(drop, mousePosition) {
|
||||
var filesByType = _reconstruction.getFilesByTypeFromDrop(drop.urls)
|
||||
if (filesByType["meshroomScenes"].length == 1) {
|
||||
ensureSaved(function() {
|
||||
|
|
|
@ -989,12 +989,12 @@ Item {
|
|||
id: dropArea
|
||||
anchors.fill: parent
|
||||
keys: ["text/uri-list"]
|
||||
onEntered: {
|
||||
onEntered: function(drag) {
|
||||
nbMeshroomScenes = 0
|
||||
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