Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-08-27 14:06:33 +0300
committerJaime van Kessel <nallath@gmail.com>2019-08-27 14:06:33 +0300
commit511eba28b69e60f9085848bd5396001661d76aa9 (patch)
treeab8ee8b2c2950fdb5d2d34ef93b6815c77edfa76 /plugins/SimulationView
parent9c2f8a94d54c63499fa382c78b5a3162a9089810 (diff)
Ensure that min/max feedrate & thickness gets defined in init
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r--plugins/SimulationView/SimulationView.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py
index 33f713ced0..edc4e7dcf0 100644
--- a/plugins/SimulationView/SimulationView.py
+++ b/plugins/SimulationView/SimulationView.py
@@ -83,6 +83,11 @@ class SimulationView(CuraView):
self._simulationview_composite_shader = None # type: Optional["ShaderProgram"]
self._old_composite_shader = None # type: Optional["ShaderProgram"]
+ self._max_feedrate = sys.float_info.min
+ self._min_feedrate = sys.float_info.max
+ self._max_thickness = sys.float_info.min
+ self._min_thickness = sys.float_info.max
+
self._global_container_stack = None # type: Optional[ContainerStack]
self._proxy = None
self._controller.getScene().getRoot().childrenChanged.connect(self._onSceneChanged)