From 6df651b5c84290b6247a76de5991eb681b842f0c Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 23 Dec 2025 16:29:54 -0600 Subject: [PATCH] partdesign: fix issue #25811 while not breaking #14720 topo naming --- src/App/ElementMap.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App/ElementMap.cpp b/src/App/ElementMap.cpp index 78275b840f..ef252de781 100644 --- a/src/App/ElementMap.cpp +++ b/src/App/ElementMap.cpp @@ -1194,7 +1194,11 @@ void ElementMap::addChildElements(long masterTag, const std::vector= 5 const int threshold {5}; - if ((child.count >= threshold && masterTag != 0) || !child.elementMap) { + + // skip encoding only when masterTag=0, child.tag=0, and count is exactly at threshold + bool skipEncoding = (masterTag == 0 && child.tag == 0 && child.count == threshold && child.elementMap); + + if ((child.count >= threshold && !skipEncoding) || !child.elementMap) { encodeElementName(child.indexedName[0], tmp, ss,