Rescale the current layer number based on the maximum layer

This makes sure we still have the top layer selected when we
receive new data.

Contributes to Asana issue 34806173176751
This commit is contained in:
Arjen Hiemstra 2015-06-08 16:31:38 +02:00
parent 8db06b8305
commit d9ad54cd0d
2 changed files with 11 additions and 6 deletions

View file

@ -21,6 +21,7 @@ Item
orientation: Qt.Vertical
minimumValue: 0;
maximumValue: UM.LayerView.numLayers;
stepSize: 1
value: UM.LayerView.currentLayer
onValueChanged: UM.LayerView.setCurrentLayer(value)