Merge pull request #19433 from tritao/gui-general-code-cleanups

Gui: General code cleanups
This commit is contained in:
Chris Hennes
2025-02-06 11:33:44 -06:00
committed by GitHub
11 changed files with 20 additions and 54 deletions

View File

@@ -486,8 +486,6 @@ void View3DInventorViewer::init()
// increase refcount before passing it to setScenegraph(), to avoid
// premature destruction
pcViewProviderRoot->ref();
// is not really working with Coin3D.
//redrawOverlayOnSelectionChange(pcSelection);
setSceneGraph(pcViewProviderRoot);
// Event callback node
pEventCallback = new SoEventCallback();
@@ -810,7 +808,7 @@ bool View3DInventorViewer::searchNode(SoNode* node) const
searchAction.setInterest(SoSearchAction::FIRST);
searchAction.apply(this->getSceneGraph());
SoPath* selectionPath = searchAction.getPath();
return selectionPath ? true : false;
return selectionPath != nullptr;
}
bool View3DInventorViewer::hasViewProvider(ViewProvider* pcProvider) const