Browse Source

CURA-4526 Stop simulation when changing preferences.
Hide nozzle node when in compatibility mode.

Diego Prado Gesto 7 years ago
parent
commit
abe9ba3795

+ 1 - 1
plugins/SimulationView/SimulationPass.py

@@ -171,7 +171,7 @@ class SimulationPass(RenderPass):
                     batch.render(self._scene.getActiveCamera())
 
         # The nozzle is drawn once we know the correct position
-        if self._layer_view.getActivity() and nozzle_node is not None:
+        if not self._compatibility_mode and self._layer_view.getActivity() and nozzle_node is not None:
             if head_position is not None:
                 nozzle_node.setVisible(True)
                 nozzle_node.setPosition(head_position)

+ 1 - 0
plugins/SimulationView/SimulationView.qml

@@ -168,6 +168,7 @@ Item
                 {
                     layerTypeCombobox.currentIndex = UM.SimulationView.compatibilityMode ? 1 : UM.Preferences.getValue("layerview/layer_view_type");
                     layerTypeCombobox.updateLegends(layerTypeCombobox.currentIndex);
+                    playButton.pauseSimulation();
                     view_settings.extruder_opacities = UM.Preferences.getValue("layerview/extruder_opacities").split("|");
                     view_settings.show_travel_moves = UM.Preferences.getValue("layerview/show_travel_moves");
                     view_settings.show_helpers = UM.Preferences.getValue("layerview/show_helpers");