Rename NumChangesInZ to LayerCount

This commit is contained in:
John Lewin 2017-06-29 13:35:44 -07:00
parent b57a63fe3e
commit 81e3cc1425
9 changed files with 18 additions and 19 deletions

View file

@ -699,7 +699,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
layerSelectionButtonsPanel.AddChild(navigationWidget);
selectLayerSlider?.Close();
selectLayerSlider = new SolidSlider(new Vector2(), sliderWidth, 0, loadedGCode.NumChangesInZ - 1, Orientation.Vertical);
selectLayerSlider = new SolidSlider(new Vector2(), sliderWidth, 0, loadedGCode.LayerCount - 1, Orientation.Vertical);
selectLayerSlider.ValueChanged += (s, e) =>
{
// TODO: Why would these need to be updated here as well as in assigned in the hslider below?