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
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-10-02 16:48:10 +0300
committerJaime van Kessel <nallath@gmail.com>2019-10-02 16:48:10 +0300
commit5ec6b2fdf792cf6ad3a76450f56cce68c34efb0d (patch)
tree05691b139607533f74069bdf87db79c8f40b2306 /cura/Scene
parent1b1029a3e07816b46c9476c06048a63ccecb8a44 (diff)
Fix typing
CURA-6785
Diffstat (limited to 'cura/Scene')
-rw-r--r--cura/Scene/ConvexHullDecorator.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cura/Scene/ConvexHullDecorator.py b/cura/Scene/ConvexHullDecorator.py
index c263726d07..72e95c9299 100644
--- a/cura/Scene/ConvexHullDecorator.py
+++ b/cura/Scene/ConvexHullDecorator.py
@@ -76,7 +76,6 @@ class ConvexHullDecorator(SceneNodeDecorator):
def __deepcopy__(self, memo):
return ConvexHullDecorator()
-
## The polygon representing the 2D adhesion area.
# If no adhesion is used, the regular convex hull is returned
def getAdhesionArea(self) -> Optional[Polygon]:
@@ -84,8 +83,10 @@ class ConvexHullDecorator(SceneNodeDecorator):
return None
hull = self._compute2DConvexHull()
- return self._add2DAdhesionMargin(hull)
+ if hull is None:
+ return None
+ return self._add2DAdhesionMargin(hull)
## Get the unmodified 2D projected convex hull with 2D adhesion area of the node (if any)
def getConvexHull(self) -> Optional[Polygon]: