Don't crash if material null
removing dead code Turned Trim Perimeters back on
This commit is contained in:
parent
9110410d20
commit
d8a0ecd86b
3 changed files with 3 additions and 597 deletions
|
|
@ -165,8 +165,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
string materialKey = layeredProfile.MaterialSettingsKeys[extruderIndex];
|
||||
SettingsLayer layer = layeredProfile.GetMaterialLayer(materialKey);
|
||||
|
||||
string result;
|
||||
layer.TryGetValue("temperature", out result);
|
||||
string result = "0";
|
||||
layer?.TryGetValue("temperature", out result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue