Ensure material is selected on first opening of material manager

This commit is contained in:
Jaime van Kessel 2019-10-25 11:05:38 +02:00
parent d905b8b8cc
commit e805c3db05
No known key found for this signature in database
GPG Key ID: 3710727397403C91

View File

@ -53,7 +53,11 @@ Item
} }
// When loaded, try to select the active material in the tree // When loaded, try to select the active material in the tree
Component.onCompleted: resetExpandedActiveMaterial() Component.onCompleted:
{
resetExpandedActiveMaterial()
base.newRootMaterialIdToSwitchTo = active_root_material_id
}
// Every time the selected item has changed, notify to the details panel // Every time the selected item has changed, notify to the details panel
onCurrentItemChanged: onCurrentItemChanged: