Cache wasn't valid due to a reference being stored, not a copy.

paer of CURA-7440
This commit is contained in:
Remco Burema 2020-10-09 13:39:53 +02:00
parent a46bf8d6fa
commit d3ec1d7d28
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -269,7 +269,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
if mesh is None:
return Polygon([]) # Node has no mesh data, so just return an empty Polygon.
world_transform = self._node.getWorldTransformation(copy = False)
world_transform = self._node.getWorldTransformation(copy = True)
# Check the cache
if mesh is self._2d_convex_hull_mesh and world_transform == self._2d_convex_hull_mesh_world_transform: