Only adjust found element names
This commit is contained in:
@@ -400,8 +400,10 @@ void SoFCUnifiedSelection::doAction(SoAction *action)
|
||||
auto subName = selaction->SelChange.pSubName;
|
||||
#ifdef FC_USE_TNP_FIX
|
||||
std::pair<std::string, std::string> elementName;
|
||||
App::GeoFeature::resolveElement(obj,subName,elementName);
|
||||
subName = elementName.second.c_str(); // Use the shortened element name not the full one.
|
||||
App::GeoFeature::resolveElement(obj, subName, elementName);
|
||||
if (!elementName.second.empty()) { // If we have a shortened element name
|
||||
subName = elementName.second.c_str(); // use it.
|
||||
}
|
||||
#endif
|
||||
if(!selaction->SelChange.pSubName || !selaction->SelChange.pSubName[0] ||
|
||||
vp->getDetailPath(subName,detailPath,true,detail))
|
||||
|
||||
@@ -116,8 +116,10 @@ void View3DInventorSelection::checkGroupOnTop(const SelectionChanges &Reason)
|
||||
auto subname = Reason.pSubName;
|
||||
#ifdef FC_USE_TNP_FIX
|
||||
std::pair<std::string, std::string> element;
|
||||
App::GeoFeature::resolveElement(obj,Reason.pSubName,element);
|
||||
subname = element.second.c_str();
|
||||
App::GeoFeature::resolveElement(obj, Reason.pSubName, element);
|
||||
if (!element.second.empty()) { // If we have a shortened element name
|
||||
subname = element.second.c_str(); // use if
|
||||
}
|
||||
#endif
|
||||
if(subname)
|
||||
key += subname;
|
||||
|
||||
Reference in New Issue
Block a user