From 4cc5b6d9ebb54e6a76058f721b2542f17fca2070 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Mon, 3 Oct 2016 10:27:31 +0200 Subject: [PATCH] Added activeStackChanged to BuildVolume, it is semantically more correct. Contributes to CURA-2232 --- cura/BuildVolume.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index c3c35bc07b..4e5c3a7d03 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -85,6 +85,9 @@ class BuildVolume(SceneNode): # activeQualityChanged is always emitted after setActiveVariant, setActiveMaterial and setActiveQuality. # Therefore this works. Application.getInstance().getMachineManager().activeQualityChanged.connect(self._onStackChanged) + # This should also ways work, and it is semantically more correct, + # but it does not update the disallowed areas after material change + Application.getInstance().getMachineManager().activeStackChanged.connect(self._onStackChanged) def _onSceneChanged(self, source): if self._global_container_stack: