Gui: Minor cleanups.

This commit is contained in:
tritao
2025-01-13 18:34:47 +00:00
parent 9e6c6682d8
commit 3b47599e43
9 changed files with 11 additions and 15 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