Core: Respect highlighting for preselection too
Co-authored-by: realthunder <realthunder@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user