mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 07:03:16 +08:00
Fix the disabling of the material setting fields.
This was caused by using 2 different modelsItems.
This commit is contained in:
parent
399e6d31ae
commit
914d2e98e9
@ -45,6 +45,11 @@ Item
|
||||
materialListView.expandActiveMaterial(active_root_material_id)
|
||||
}
|
||||
|
||||
function setExpandedActiveMaterial(root_material_id)
|
||||
{
|
||||
materialListView.expandActiveMaterial(root_material_id)
|
||||
}
|
||||
|
||||
// When loaded, try to select the active material in the tree
|
||||
Component.onCompleted: resetExpandedActiveMaterial()
|
||||
|
||||
|
@ -60,7 +60,7 @@ Rectangle
|
||||
{
|
||||
materialList.currentBrand = material.brand
|
||||
materialList.currentType = material.brand + "_" + material.material
|
||||
base.currentItem = material
|
||||
base.setExpandedActiveMaterial(material.root_material_id)
|
||||
}
|
||||
hoverEnabled: true
|
||||
onEntered: { materialSlot.hovered = true }
|
||||
|
Loading…
x
Reference in New Issue
Block a user