From ef704db877309e9c36a2cb74e37132181bbc2342 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 9 Mar 2017 04:02:58 +0100 Subject: [PATCH] Fix reset of changed flag --- components/terrain/viewdata.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/terrain/viewdata.cpp b/components/terrain/viewdata.cpp index bc8448b0e..e07e3c784 100644 --- a/components/terrain/viewdata.cpp +++ b/components/terrain/viewdata.cpp @@ -42,6 +42,7 @@ void ViewData::reset(unsigned int frame) // reset index for next frame mNumEntries = 0; + mChanged = false; mFrameLastUsed = frame; } @@ -52,6 +53,7 @@ void ViewData::clear() mEntries[i].set(NULL, false); mNumEntries = 0; mFrameLastUsed = 0; + mChanged = false; } bool ViewData::contains(QuadTreeNode *node)