Core: Respect highlighting for preselection too

Co-authored-by: realthunder <realthunder@users.noreply.github.com>
This commit is contained in:
tetektoza
2025-06-21 10:20:13 +02:00
parent ce8ba74602
commit 5d49b4b108

View File

@@ -840,11 +840,10 @@ void View3DInventorViewer::onSelectionChanged(const SelectionChanges & reason)
}
if(Reason.Type == SelectionChanges::RmvPreselect ||
Reason.Type == SelectionChanges::RmvPreselectSignal)
Reason.Type == SelectionChanges::RmvPreselectSignal ||
Reason.Type == SelectionChanges::SetPreselect)
{
//Hint: do not create a tmp. instance of SelectionChanges
SelectionChanges selChanges(SelectionChanges::RmvPreselect);
SoFCPreselectionAction preselectionAction(selChanges);
SoFCPreselectionAction preselectionAction(Reason);
preselectionAction.apply(pcViewProviderRoot);
} else {
SoFCSelectionAction selectionAction(Reason);