Cura/plugins/SimulationView
Ghostkeeper e9d3ba9b74
Simplify limits on [minimum] layer/path number
Just a few calls to min() or max() do the trick, rather than if statements.
I consider this more semantic, because we just intend to clamp values here, and min() and max() are commonly used to do that.
It should also be slightly faster because it's less Python and more internal in CPython, but considering that this happens at best like 60 times per second the performance impact of this will be practically nil.
2021-03-06 14:15:48 +01:00
..
2020-05-07 14:10:45 +02:00
2019-11-08 13:38:42 +01:00
2020-10-22 11:29:25 +02:00