mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:59:04 +08:00
Double check that the active instance and profile are set before updating disallowed
Contributes to CURA-138
This commit is contained in:
parent
fe9e35c062
commit
4c0b4ae870
@ -186,6 +186,9 @@ class BuildVolume(SceneNode):
|
|||||||
self.rebuild()
|
self.rebuild()
|
||||||
|
|
||||||
def _updateDisallowedAreas(self):
|
def _updateDisallowedAreas(self):
|
||||||
|
if not self._active_instance or not self._active_profile:
|
||||||
|
return
|
||||||
|
|
||||||
disallowed_areas = self._active_instance.getMachineSettingValue("machine_disallowed_areas")
|
disallowed_areas = self._active_instance.getMachineSettingValue("machine_disallowed_areas")
|
||||||
areas = []
|
areas = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user