From 2c4d2c600cbfb262c6735352a683efdcb7b2fa8b Mon Sep 17 00:00:00 2001 From: Guido Ranzuglia granzuglia Date: Tue, 16 Jul 2013 09:10:35 +0000 Subject: [PATCH] - Qtime init was missing --- src/common/meshmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/meshmodel.cpp b/src/common/meshmodel.cpp index 83d1cccec..88ead7411 100644 --- a/src/common/meshmodel.cpp +++ b/src/common/meshmodel.cpp @@ -279,7 +279,7 @@ void MeshDocument::updateRenderStateMeshes(const QList& mm,const int meshup void MeshDocument::updateRenderStateRasters(const QList& rm,const int rasterupdatemask) { - static QTime currTime; + static QTime currTime = QTime::currentTime(); if(currTime.elapsed()< 100) return; for (QList::const_iterator rit = rm.begin();rit != rm.end();++rit) @@ -295,7 +295,7 @@ void MeshDocument::updateRenderStateRasters(const QList& rm,const int raste void MeshDocument::updateRenderState(const QList& mm,const int meshupdatemask,const QList& rm,const int rasterupdatemask) { - static QTime currTime; + static QTime currTime = QTime::currentTime(); if(currTime.elapsed()< 100) return; for (QList::const_iterator mit = mm.begin();mit != mm.end();++mit)