Skip to content

Commit ec321ae

Browse files
committed
[submit] fix some issues in the code
1 parent 5bdb4b4 commit ec321ae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

meshroom/ui/qml/GraphEditor/ChunksListView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ ColumnLayout {
109109
target: _currentScene
110110
function onSelectedChunkChanged() {
111111
for (var i = 0; i < root.chunks.length; i++) {
112-
if (_currentScene.selectedChunk === root.chunks[i]) {
112+
if (_currentScene.selectedChunk === root.chunks[i].chunk) {
113113
root.currentIndex = i
114114
break;
115115
}

tests/test_compute.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def executeChunks(node, size):
2525
logFiles = {}
2626
node.preprocess()
2727
for chunkIndex in range(size):
28-
iteration = chunkIndex if size >= 0 else ChunkIndex.NONE
29-
node.prepareLogger(iteration)
28+
iteration = chunkIndex if size > 0 else ChunkIndex.NONE
3029
logFileName = f"{chunkIndex}.log"
3130
logFile = Path(node.internalFolder) / logFileName
3231
logFiles[chunkIndex] = logFile

0 commit comments

Comments
 (0)