Skip to content

Commit da1b842

Browse files
committed
[ui] MediaLibrary: enable dynamicRoles on mediaModel
If an outside 3D media file is the first thing ever loaded, 'model.attribute' will be initialized to 'null' and will prevent an actual Attribute to be associated to this role. This breaks media loading from within Meshroom.
1 parent 6199de0 commit da1b842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshroom/ui/qml/Viewer3D/MediaLibrary.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Entity {
3030

3131
QtObject {
3232
id: m
33-
property ListModel mediaModel: ListModel {}
33+
property ListModel mediaModel: ListModel { dynamicRoles: true }
3434
property var sourceToEntity: ({})
3535

3636
readonly property var mediaElement: ({

0 commit comments

Comments
 (0)