Pre-cache faces connectivity during prepare job

CURA-12743
This avoids a huge slowdown when starting to paint
This commit is contained in:
Erwan MATHIEU 2025-10-01 16:38:50 +02:00
parent 7504c8be89
commit 05b3aeb2bd

View file

@ -31,3 +31,5 @@ class PrepareTextureJob(Job):
# Force clear OpenGL buffer so that new UV coordinates will be sent
delattr(mesh, OpenGL.VertexBufferProperty)
# Also cache the faces connection, can be quite long to compute
self._node.getMeshData().getFacesConnections()