Merge pull request #16726 from bgbsww/bgbsww-AssemblySubNames

Assembly: Correctly build reference from selection subname
This commit is contained in:
Chris Hennes
2024-10-03 13:46:35 -05:00
committed by GitHub
2 changed files with 23 additions and 15 deletions

View File

@@ -272,7 +272,7 @@ void PropertyLinkBase::_registerElementReference(App::DocumentObject *obj, std::
return;
}
if (shadow.newName.empty()) {
_updateElementReference(0, obj, sub, shadow, false);
_updateElementReference(nullptr, obj, sub, shadow, false);
return;
}
GeoFeature* geo = nullptr;
@@ -283,7 +283,7 @@ void PropertyLinkBase::_registerElementReference(App::DocumentObject *obj, std::
elementName,
true,
GeoFeature::ElementNameType::Export,
0,
nullptr,
&element,
&geo);
if (!geo || !element || !element[0]) {