forked from mirror/openmw-tes3mp
Set character preview's simulationTime to 0 to avoid flickering lights
This commit is contained in:
parent
c45013c983
commit
e38221edc9
1 changed files with 9 additions and 0 deletions
|
@ -42,7 +42,16 @@ namespace MWRender
|
|||
mRendered = true;
|
||||
|
||||
mLastRenderedFrame = nv->getTraversalNumber();
|
||||
|
||||
osg::ref_ptr<osg::FrameStamp> previousFramestamp = const_cast<osg::FrameStamp*>(nv->getFrameStamp());
|
||||
osg::FrameStamp* fs = new osg::FrameStamp(*previousFramestamp);
|
||||
fs->setSimulationTime(0.0);
|
||||
|
||||
nv->setFrameStamp(fs);
|
||||
|
||||
traverse(node, nv);
|
||||
|
||||
nv->setFrameStamp(previousFramestamp);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue