Skip to content

Commit e7f4ecd

Browse files
committed
[ui] Use chunk placeholder for uncreated dynamic chunks
1 parent 524a3fa commit e7f4ecd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

meshroom/ui/graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ def updateChunks(self):
435435
if node._chunksCreated:
436436
nodechunks = node.getChunks()
437437
chunks.extend(nodechunks)
438+
else:
439+
chunks.extend(node.chunkPlaceholder)
438440
if self._sortedDFSChunks.objectList() == chunks:
439441
# Nothing has changed, return
440442
return

meshroom/ui/qml/GraphEditor/Node.qml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,14 @@ Item {
500500
defaultColor: Colors.sysPalette.mid
501501
implicitHeight: 3
502502
width: parent.width
503-
model: node && node.chunksCreated ? node.chunks : undefined
503+
model: {
504+
if (node && node.chunksCreated)
505+
return node.chunks
506+
else if (node && !node.chunksCreated)
507+
return node.chunkPlaceholder
508+
509+
return undefined
510+
}
504511

505512
Rectangle {
506513
anchors.fill: parent

0 commit comments

Comments
 (0)