From 4d0e0bdc95acd2d16764921c76ab4026dbd80155 Mon Sep 17 00:00:00 2001 From: Alexander Mock Date: Thu, 11 Sep 2025 16:05:51 +0200 Subject: [PATCH] added updateVertexCostsUpdateSubscription() when display type is toggled to Vertex Costs --- rviz_mesh_tools_plugins/src/MeshDisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rviz_mesh_tools_plugins/src/MeshDisplay.cpp b/rviz_mesh_tools_plugins/src/MeshDisplay.cpp index 7eb3ba1..91a2d58 100644 --- a/rviz_mesh_tools_plugins/src/MeshDisplay.cpp +++ b/rviz_mesh_tools_plugins/src/MeshDisplay.cpp @@ -691,6 +691,10 @@ void MeshDisplay::updateDisplayType() { updateVertexCostsSubscription(); } + if (!m_costsUpdateMsgCache) + { + updateVertexCostsUpdateSubscription(); + } } m_vertexCostsRefreshRate->show(); m_selectVertexCostMap->show();