Skip to content

Commit beebdc3

Browse files
committed
[GraphEditor] Use attribute.values for the model
Following the modifications that introduce the dynamic choices, we use the list of attributes instead of the description of the attributes.
1 parent f756304 commit beebdc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meshroom/ui/qml/GraphEditor/AttributeItemDelegate.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ RowLayout {
345345
id: comboBox_component
346346

347347
FilterComboBox {
348-
inputModel: attribute.desc.values
348+
inputModel: attribute.values
349349

350350
Component.onCompleted: {
351351
currentIndex = find(attribute.value)
@@ -362,7 +362,7 @@ RowLayout {
362362
// but if only reopen the combo box, keep the current value
363363

364364
//convert all values of desc values as string
365-
var valuesAsString = attribute.desc.values.map(function(value) {
365+
var valuesAsString = attribute.values.map(function(value) {
366366
return value.toString()
367367
})
368368
if (valuesAsString.includes(attribute.value) || attribute.value === attribute.desc.value) {

0 commit comments

Comments
 (0)