partdesign: fix issue #25811 while not breaking #14720 topo naming

This commit is contained in:
chris
2025-12-23 16:29:54 -06:00
committed by Kacper Donat
parent 9f2b0f910b
commit 6df651b5c8

View File

@@ -1194,7 +1194,11 @@ void ElementMap::addChildElements(long masterTag, const std::vector<MappedChildE
// do child mapping only if the child element count >= 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,