mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Merge remote-tracking branch 'origin/3.5'
This commit is contained in:
commit
b97f4ea30c
5 changed files with 27 additions and 8 deletions
|
@ -346,7 +346,7 @@ class SimulationView(View):
|
|||
|
||||
self._old_max_layers = self._max_layers
|
||||
## Recalculate num max layers
|
||||
new_max_layers = 0
|
||||
new_max_layers = -1
|
||||
for node in DepthFirstIterator(scene.getRoot()):
|
||||
layer_data = node.callDecoration("getLayerData")
|
||||
if not layer_data:
|
||||
|
@ -381,7 +381,7 @@ class SimulationView(View):
|
|||
if new_max_layers < layer_count:
|
||||
new_max_layers = layer_count
|
||||
|
||||
if new_max_layers > 0 and new_max_layers != self._old_max_layers:
|
||||
if new_max_layers >= 0 and new_max_layers != self._old_max_layers:
|
||||
self._max_layers = new_max_layers
|
||||
|
||||
# The qt slider has a bit of weird behavior that if the maxvalue needs to be changed first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue