mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Read material weight from container
CURA-5408
This commit is contained in:
parent
183cd0182d
commit
77bd6cf749
2 changed files with 14 additions and 3 deletions
|
@ -529,6 +529,12 @@ TabView
|
|||
{
|
||||
return materialPreferenceValues[material_guid][entry_name];
|
||||
}
|
||||
|
||||
var material_weight = Cura.ContainerManager.getContainerMetaDataEntry(base.containerId, "properties", "weight");
|
||||
if(material_weight != undefined && material_weight != "")
|
||||
{
|
||||
return material_weight
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue