<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div> </div>

<div>in r13604 osgUtils/SceneView got a new default value for SceneView::setDefaults():</div>

<div>
<p class="commit-title">Added SceneView::Options enum enetries APPLY_GLOBAL_DEFAULTS and CLEAR_GLOBAL_STATESET to control whether a _globalStateSet->clear() and _globalStateSet->setGlobalDefaults() should be called.</p>

<p class="commit-title">The problem seems to be that in osgViewer/Renderer.cpp those new enum values are not respected when sceneViewOptions for the scenes is calculated:</p>

<p class="commit-title">Renderer.cpp:399</p>

<p class="commit-title">unsigned int sceneViewOptions = osgUtil::SceneView::HEADLIGHT;<br/>
if (view)<br/>
{<br/>
    switch(view->getLightingMode())<br/>
    {<br/>
        case(osg::View::NO_LIGHT): sceneViewOptions = 0; break;<br/>
        case(osg::View::SKY_LIGHT): sceneViewOptions = osgUtil::SceneView::SKY_LIGHT; break;<br/>
        case(osg::View::HEADLIGHT): sceneViewOptions = osgUtil::SceneView::HEADLIGHT; break;<br/>
    }<br/>
}<br/>
...<br/>
_sceneView[0]->setDefaults(sceneViewOptions);<br/>
_sceneView[1]->setDefaults(sceneViewOptions);</p>

<p class="commit-title"> </p>

<p class="commit-title">This leads to a broken Scene in our application. As I've no idea about the internals of osg (I just searched this bug) I hope this is enough to fix the problem.</p>

<p class="commit-title"> </p>

<p class="commit-title">Thx,</p>

<p class="commit-title">Christian Ehrlicher</p>
</div></div></body></html>