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)