Double check that the active instance and profile are set before updating disallowed

Contributes to CURA-138
This commit is contained in:
Arjen Hiemstra 2015-10-29 13:54:26 +01:00
parent fe9e35c062
commit 4c0b4ae870

View file

@ -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 = []