From 05b3aeb2bd22e95adc1296bcaa46a78671bdca2b Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 1 Oct 2025 16:38:50 +0200 Subject: [PATCH] Pre-cache faces connectivity during prepare job CURA-12743 This avoids a huge slowdown when starting to paint --- plugins/PaintTool/PrepareTextureJob.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/PaintTool/PrepareTextureJob.py b/plugins/PaintTool/PrepareTextureJob.py index 6c5e61c009..1e5cce6c51 100644 --- a/plugins/PaintTool/PrepareTextureJob.py +++ b/plugins/PaintTool/PrepareTextureJob.py @@ -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()