fix for SH-3640: Can not edit objects
parent
4e22f3e3ef
commit
1fbd45672f
|
|
@ -211,6 +211,7 @@ void LLSceneMonitor::unfreezeScene()
|
|||
void LLSceneMonitor::capture()
|
||||
{
|
||||
static U32 last_capture_time = 0;
|
||||
|
||||
if(last_capture_time == gFrameCount)
|
||||
{
|
||||
return;
|
||||
|
|
@ -239,6 +240,11 @@ void LLSceneMonitor::capture()
|
|||
mNeedsUpdateDiff = TRUE;
|
||||
}
|
||||
|
||||
bool LLSceneMonitor::needsUpdate() const
|
||||
{
|
||||
return mNeedsUpdateDiff;
|
||||
}
|
||||
|
||||
void LLSceneMonitor::compare()
|
||||
{
|
||||
if(!mNeedsUpdateDiff)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ public:
|
|||
F32 getSamplingTime() const { return mSamplingTime;}
|
||||
F32 getDiffPixelRatio() const { return mDiffPixelRatio;}
|
||||
bool isEnabled()const {return mEnabled;}
|
||||
bool needsUpdate() const;
|
||||
|
||||
private:
|
||||
void freezeScene();
|
||||
|
|
|
|||
|
|
@ -1228,10 +1228,12 @@ void render_ui(F32 zoom_factor, int subfield)
|
|||
glh_set_current_modelview(glh_copy_matrix(gGLLastModelView));
|
||||
}
|
||||
|
||||
if(LLSceneMonitor::getInstance()->needsUpdate())
|
||||
{
|
||||
gGL.pushMatrix();
|
||||
gViewerWindow->setup2DRender();
|
||||
LLSceneMonitor::getInstance()->compare();
|
||||
gViewerWindow->setup3DRender();
|
||||
gGL.popMatrix();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue