mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[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.
This commit is contained in:
parent
6199de0b45
commit
da1b842493
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ Entity {
|
|||
|
||||
QtObject {
|
||||
id: m
|
||||
property ListModel mediaModel: ListModel {}
|
||||
property ListModel mediaModel: ListModel { dynamicRoles: true }
|
||||
property var sourceToEntity: ({})
|
||||
|
||||
readonly property var mediaElement: ({
|
||||
|
|
Loading…
Add table
Reference in a new issue