mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-4526 Stop simulation when changing preferences.
Hide nozzle node when in compatibility mode.
This commit is contained in:
parent
2df06bbbb9
commit
abe9ba3795
2 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,7 @@ class SimulationPass(RenderPass):
|
||||||
batch.render(self._scene.getActiveCamera())
|
batch.render(self._scene.getActiveCamera())
|
||||||
|
|
||||||
# The nozzle is drawn once we know the correct position
|
# 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:
|
if head_position is not None:
|
||||||
nozzle_node.setVisible(True)
|
nozzle_node.setVisible(True)
|
||||||
nozzle_node.setPosition(head_position)
|
nozzle_node.setPosition(head_position)
|
||||||
|
|
|
@ -168,6 +168,7 @@ Item
|
||||||
{
|
{
|
||||||
layerTypeCombobox.currentIndex = UM.SimulationView.compatibilityMode ? 1 : UM.Preferences.getValue("layerview/layer_view_type");
|
layerTypeCombobox.currentIndex = UM.SimulationView.compatibilityMode ? 1 : UM.Preferences.getValue("layerview/layer_view_type");
|
||||||
layerTypeCombobox.updateLegends(layerTypeCombobox.currentIndex);
|
layerTypeCombobox.updateLegends(layerTypeCombobox.currentIndex);
|
||||||
|
playButton.pauseSimulation();
|
||||||
view_settings.extruder_opacities = UM.Preferences.getValue("layerview/extruder_opacities").split("|");
|
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_travel_moves = UM.Preferences.getValue("layerview/show_travel_moves");
|
||||||
view_settings.show_helpers = UM.Preferences.getValue("layerview/show_helpers");
|
view_settings.show_helpers = UM.Preferences.getValue("layerview/show_helpers");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue