Toponaming: fix shapebinder selection error

This commit is contained in:
bgbsww
2024-05-21 21:41:26 -04:00
parent 202aa359b3
commit febe5c3d9e

View File

@@ -638,7 +638,8 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) {
subs.erase(none);
for (const auto& sub : subs) {
try {
auto shape = Part::Feature::getTopoShape(obj, sub.c_str(), true);
auto name = Data::oldElementName(sub.c_str()).c_str();
auto shape = Part::Feature::getTopoShape(obj, name, true);
if (!shape.isNull()) {
shapes.push_back(shape);
shapeMats.push_back(&res.first->second);