show save buttons when material changes not when selection changes
This commit is contained in:
parent
eed4306c1f
commit
92758491a7
1 changed files with 5 additions and 2 deletions
|
|
@ -1915,7 +1915,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
foreach (Mesh mesh in SelectedMeshGroup.Meshes)
|
||||
{
|
||||
MeshMaterialData material = MeshMaterialData.Get(mesh);
|
||||
material.MaterialIndex = (int)extruderControl.ActuallNumberEdit.Value;
|
||||
if(material.MaterialIndex != (int)extruderControl.ActuallNumberEdit.Value)
|
||||
{
|
||||
material.MaterialIndex = (int)extruderControl.ActuallNumberEdit.Value;
|
||||
saveButtons.Visible = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -1926,7 +1930,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
if (extruderControl.ActuallNumberEdit.Value != material.MaterialIndex)
|
||||
{
|
||||
extruderControl.ActuallNumberEdit.Value = material.MaterialIndex;
|
||||
saveButtons.Visible = true;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue