mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:05:54 +08:00
Filter available materials by the machine definition
Since we now have some machine-specific materials
This commit is contained in:
parent
2654033fae
commit
b2a8810d04
@ -13,7 +13,7 @@ UM.ManagementPage
|
|||||||
|
|
||||||
title: catalog.i18nc("@title:tab", "Materials");
|
title: catalog.i18nc("@title:tab", "Materials");
|
||||||
|
|
||||||
model: UM.InstanceContainersModel { filter: { "type": "material" } }
|
model: UM.InstanceContainersModel { filter: { "type": "material", "definition": Cura.MachineManager.activeDefinitionId } }
|
||||||
/*
|
/*
|
||||||
onAddObject: { var selectedMaterial = UM.MaterialManager.createProfile(); base.selectMaterial(selectedMaterial); }
|
onAddObject: { var selectedMaterial = UM.MaterialManager.createProfile(); base.selectMaterial(selectedMaterial); }
|
||||||
onRemoveObject: confirmDialog.open();
|
onRemoveObject: confirmDialog.open();
|
||||||
|
@ -197,7 +197,7 @@ Item
|
|||||||
id: materialSelectionInstantiator
|
id: materialSelectionInstantiator
|
||||||
model: UM.InstanceContainersModel
|
model: UM.InstanceContainersModel
|
||||||
{
|
{
|
||||||
filter: {"type": "material"}
|
filter: { "type": "material", "definition": Cura.MachineManager.activeDefinitionId }
|
||||||
}
|
}
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user