mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-09 21:07:20 +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();
|
_reconstruction.forceNodesStatusUpdate();
|
||||||
computeManager.submit(nodes)
|
computeManager.submit(nodes)
|
||||||
}
|
}
|
||||||
onFilesDropped: {
|
onFilesDropped: function(drop, mousePosition) {
|
||||||
var filesByType = _reconstruction.getFilesByTypeFromDrop(drop.urls)
|
var filesByType = _reconstruction.getFilesByTypeFromDrop(drop.urls)
|
||||||
if (filesByType["meshroomScenes"].length == 1) {
|
if (filesByType["meshroomScenes"].length == 1) {
|
||||||
ensureSaved(function() {
|
ensureSaved(function() {
|
||||||
|
|
|
@ -989,12 +989,12 @@ Item {
|
||||||
id: dropArea
|
id: dropArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
keys: ["text/uri-list"]
|
keys: ["text/uri-list"]
|
||||||
onEntered: {
|
onEntered: function(drag) {
|
||||||
nbMeshroomScenes = 0
|
nbMeshroomScenes = 0
|
||||||
nbDraggedFiles = drag.urls.length
|
nbDraggedFiles = drag.urls.length
|
||||||
|
|
||||||
drag.urls.forEach(function(file) {
|
drag.urls.forEach(function(file) {
|
||||||
if (file.endsWith(".mg")) {
|
if (String(file).endsWith(".mg")) {
|
||||||
nbMeshroomScenes++
|
nbMeshroomScenes++
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue