Skip to content

Commit

Permalink
fix backlight issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ickby authored and wwmayer committed Sep 23, 2014
1 parent cc5c9f6 commit 42ae8a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui/View3DInventorViewer.cpp
Expand Up @@ -781,7 +781,9 @@ void View3DInventorViewer::setSceneGraph(SoNode* root)

SoSearchAction sa;
sa.setNode(this->backlight);
SoNode* scene = this->getSceneGraph();
//we want the rendered scene with all lights and cameras, viewer->getSceneGraph would return
//the geometry scene only
SoNode* scene = this->getSoRenderManager()->getSceneGraph();

if(scene && scene->getTypeId().isDerivedFrom(SoSeparator::getClassTypeId())) {
sa.apply(scene);
Expand Down

0 comments on commit 42ae8a6

Please sign in to comment.