mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
![]() 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. |
||
---|---|---|
.. | ||
resources | ||
__init__.py | ||
layers.shader | ||
layers3d.shader | ||
layers3d_shadow.shader | ||
layers_shadow.shader | ||
LayerSlider.qml | ||
NozzleNode.py | ||
PathSlider.qml | ||
plugin.json | ||
SimulationPass.py | ||
SimulationSliderLabel.qml | ||
SimulationView.py | ||
simulationview_composite.shader | ||
SimulationViewMainComponent.qml | ||
SimulationViewMenuComponent.qml | ||
SimulationViewProxy.py |