From 8b7afa53a9f2f96427b855ba4f64eda040df18c6 Mon Sep 17 00:00:00 2001 From: takashi310 Date: Thu, 30 Mar 2023 13:54:30 -0400 Subject: [PATCH] fix labels of sub-meshes --- fluorender/FluoRender/VRenderFrame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fluorender/FluoRender/VRenderFrame.cpp b/fluorender/FluoRender/VRenderFrame.cpp index e92759e..f7f5083 100644 --- a/fluorender/FluoRender/VRenderFrame.cpp +++ b/fluorender/FluoRender/VRenderFrame.cpp @@ -1685,7 +1685,10 @@ void VRenderFrame::ConvertCSV2SWC(wxString filename, VRenderView* vrv) if (link < 0) { if (elems.Count() >= 8) - annotations->AddText(elems[7].ToStdString(), pos, ""); + { + if (!elems[7].AfterLast('.').IsSameAs("links")) + annotations->AddText(elems[7].AfterLast('_').ToStdString(), pos, ""); + } else annotations->AddText(gname.ToStdString(), pos, ""); }