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-01-17 16:28:35 +0300
committerJaime van Kessel <nallath@gmail.com>2019-01-17 16:28:35 +0300
commit94cf61ca18dfad07bd029c4f5da4b9288200c32d (patch)
tree8a54f392d16231361d489715eb79556f12eee112 /plugins/SimulationView
parent15563a756f92f3aa4648f41228dbc725b2f1dfb2 (diff)
parentaff2ffc67ae694d8d1ca283449ef1b9ad65821f2 (diff)
Merge branch '4.0' of github.com:Ultimaker/Cura
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r--plugins/SimulationView/SimulationViewMainComponent.qml5
-rw-r--r--plugins/SimulationView/SimulationViewMenuComponent.qml5
2 files changed, 10 insertions, 0 deletions
diff --git a/plugins/SimulationView/SimulationViewMainComponent.qml b/plugins/SimulationView/SimulationViewMainComponent.qml
index 16b049c921..58901652d3 100644
--- a/plugins/SimulationView/SimulationViewMainComponent.qml
+++ b/plugins/SimulationView/SimulationViewMainComponent.qml
@@ -71,6 +71,11 @@ Item
target: UM.Preferences
onPreferenceChanged:
{
+ if (preference !== "view/only_show_top_layers" && preference !== "view/top_layer_count" && ! preference.match("layerview/"))
+ {
+ return;
+ }
+
playButton.pauseSimulation()
}
}
diff --git a/plugins/SimulationView/SimulationViewMenuComponent.qml b/plugins/SimulationView/SimulationViewMenuComponent.qml
index 4c952d4c43..957d8170cf 100644
--- a/plugins/SimulationView/SimulationViewMenuComponent.qml
+++ b/plugins/SimulationView/SimulationViewMenuComponent.qml
@@ -22,6 +22,11 @@ Cura.ExpandableComponent
target: UM.Preferences
onPreferenceChanged:
{
+ if (preference !== "view/only_show_top_layers" && preference !== "view/top_layer_count" && ! preference.match("layerview/"))
+ {
+ return;
+ }
+
layerTypeCombobox.currentIndex = UM.SimulationView.compatibilityMode ? 1 : UM.Preferences.getValue("layerview/layer_view_type")
layerTypeCombobox.updateLegends(layerTypeCombobox.currentIndex)
viewSettings.extruder_opacities = UM.Preferences.getValue("layerview/extruder_opacities").split("|")