Toponaming used mapped index to find shape. fix #14194

This commit is contained in:
bgbsww
2024-05-23 12:15:28 -04:00
committed by Chris Hennes
parent b71c2a3278
commit db48a78d5a

View File

@@ -2025,8 +2025,11 @@ TopoShape TopoShape::getSubTopoShape(const char* Type, bool silent) const
}
return TopoShape();
}
#ifdef FC_USE_TNP_FIX
auto res = shapeTypeAndIndex(mapped.index);
#else
auto res = shapeTypeAndIndex(Type);
#endif
if (res.second <= 0) {
if (!silent) {
FC_THROWM(Base::ValueError, "Invalid shape name " << (Type ? Type : ""));