From 4c0b4ae870fb8ad035dc757226d845b4066cd3e0 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 29 Oct 2015 13:54:26 +0100 Subject: [PATCH] Double check that the active instance and profile are set before updating disallowed Contributes to CURA-138 --- cura/BuildVolume.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index 42f301fb5a..223f8a3693 100644 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -186,6 +186,9 @@ class BuildVolume(SceneNode): self.rebuild() def _updateDisallowedAreas(self): + if not self._active_instance or not self._active_profile: + return + disallowed_areas = self._active_instance.getMachineSettingValue("machine_disallowed_areas") areas = []