mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue