Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2021-12-16 12:00:11 +0300
committerJaime van Kessel <nallath@gmail.com>2021-12-16 12:00:11 +0300
commitd59cd602eed519ff453a517e0bdad4beef901aca (patch)
tree8db5458ab0798f559257de8d856a963101eb61c4 /cura
parent6c64e08299aa6ed258a9bce261923891f13ecf3a (diff)
FIx failing mypy test
CURA-8083
Diffstat (limited to 'cura')
-rwxr-xr-xcura/BuildVolume.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py
index 911a542834..fc5691f034 100755
--- a/cura/BuildVolume.py
+++ b/cura/BuildVolume.py
@@ -770,6 +770,8 @@ class BuildVolume(SceneNode):
self.rebuild()
def _scaleAreas(self, result_areas: List[Polygon]) -> None:
+ if self._global_container_stack is None:
+ return
for i, polygon in enumerate(result_areas):
result_areas[i] = polygon.scale(
100.0 / max(100.0, self._global_container_stack.getProperty("material_shrinkage_percentage_xy", "value"))