Read material weight from container

CURA-5408
This commit is contained in:
Aleksei S 2018-07-09 14:20:51 +02:00
parent 183cd0182d
commit 77bd6cf749
2 changed files with 14 additions and 3 deletions

View file

@ -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;
}