mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 19:06:09 +08:00
Cache wasn't valid due to a reference being stored, not a copy.
paer of CURA-7440
This commit is contained in:
parent
a46bf8d6fa
commit
d3ec1d7d28
@ -269,7 +269,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
if mesh is None:
|
if mesh is None:
|
||||||
return Polygon([]) # Node has no mesh data, so just return an empty Polygon.
|
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
|
# Check the cache
|
||||||
if mesh is self._2d_convex_hull_mesh and world_transform == self._2d_convex_hull_mesh_world_transform:
|
if mesh is self._2d_convex_hull_mesh and world_transform == self._2d_convex_hull_mesh_world_transform:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user