Added setting of the sampleDensityWhenMovingProperty at the same time as when setting the sampleDensityProperty

This commit is contained in:
Robert Osfield
2011-11-01 11:08:48 +00:00
parent 3cad9d0962
commit 215512647c

View File

@@ -385,6 +385,11 @@ bool PropertyAdjustmentCallback::handle(const osgGA::GUIEventAdapter& ea,osgGA::
OSG_INFO<<"Setting sample density to "<<v4<<std::endl;
cpv._sampleDensityProperty->setValue(v4);
}
if (_updateSampleDensity && cpv._sampleDensityWhenMovingProperty.valid())
{
OSG_INFO<<"Setting sample density when moving to "<<v4<<std::endl;
cpv._sampleDensityWhenMovingProperty->setValue(v4);
}
}
case(osgGA::GUIEventAdapter::KEYDOWN):
{