mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06: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
1 changed files with 3 additions and 0 deletions
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue