mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:45:55 +08:00
Account for the fact that global_stack may be empty
You should not have any models in your scene then though. But oh well. It also fixes the typing. Contributes to issue CURA-7118.
This commit is contained in:
parent
323be4deff
commit
59bf1c10af
@ -381,7 +381,8 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||
:return: New Polygon instance that is offset with everything that
|
||||
influences the collision area.
|
||||
"""
|
||||
|
||||
if not self._global_stack: # Should never happen.
|
||||
return convex_hull
|
||||
scale_factor = self._global_stack.getProperty("material_shrinkage_percentage", "value") / 100.0
|
||||
result = convex_hull
|
||||
if scale_factor != 1.0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user