Skip to content

Commit b30c092

Browse files
broodsfabiencastan
authored andcommitted
[ui] add node computation on error status
1 parent e7cf429 commit b30c092

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

meshroom/core/node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def process(self, forceCompute=False):
411411
self.node.nodeDesc.processChunk(self)
412412
except Exception as e:
413413
if self._status.status != Status.STOPPED:
414+
self._status.elapsedTime = time.time() - startTime
414415
self.upgradeStatusTo(Status.ERROR)
415416
raise
416417
except (KeyboardInterrupt, SystemError, GeneratorExit) as e:

meshroom/ui/qml/GraphEditor/NodeEditor.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Panel {
3030
if (node !== null && node.isSubmittedOrRunning()) {
3131
timer.start()
3232
}
33-
else if (node !== null && node.isFinishedOrRunning()) {
33+
else if (node !== null && (node.isFinishedOrRunning() || node.globalStatus=="ERROR")) {
3434
computationInfo.text = Format.getTimeStr(node.elapsedTime)
3535
}
3636
else {
@@ -70,7 +70,7 @@ Panel {
7070
font.italic: true
7171
visible: {
7272
if (node !== null) {
73-
if ((node.isFinishedOrRunning() || node.isSubmittedOrRunning())) {
73+
if (node.isFinishedOrRunning() || node.isSubmittedOrRunning() || node.globalStatus=="ERROR") {
7474
return true
7575
}
7676
}

0 commit comments

Comments
 (0)