Gui: Rename SoFCEnableHighlightAction to preselection terminology.

This commit is contained in:
tritao
2025-01-15 13:39:32 +00:00
parent 4843377790
commit e79b5ff9e8
5 changed files with 43 additions and 43 deletions

View File

@@ -312,9 +312,9 @@ SoFCUnifiedSelection::getPickedList(SoHandleEventAction* action, bool singlePick
void SoFCUnifiedSelection::doAction(SoAction *action)
{
if (action->getTypeId() == SoFCEnableHighlightAction::getClassTypeId()) {
auto enableHighlightAction = static_cast<SoFCEnableHighlightAction*>(action);
if (enableHighlightAction->highlight) {
if (action->getTypeId() == SoFCEnablePreselectionAction::getClassTypeId()) {
auto enablePreselectionAction = static_cast<SoFCEnablePreselectionAction*>(action);
if (enablePreselectionAction->enabled) {
this->preselectionMode = SoFCUnifiedSelection::AUTO;
}
else {
@@ -324,7 +324,7 @@ void SoFCUnifiedSelection::doAction(SoAction *action)
if (action->getTypeId() == SoFCEnableSelectionAction::getClassTypeId()) {
auto enableSelectionAction = static_cast<SoFCEnableSelectionAction*>(action);
if (enableSelectionAction->selection) {
if (enableSelectionAction->enabled) {
this->selectionMode = SoFCUnifiedSelection::ON;
}
else {