summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/BiomeView.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-15 17:29:34 +0200
committerMattes D <github@xoft.cz>2014-09-15 17:29:34 +0200
commit21b70f17c264de4f7c216cfca580e8254df5cbee (patch)
treeab513d7146904bfdfa88943c787548311997cfdd /Tools/QtBiomeVisualiser/BiomeView.cpp
parentQtBiomeVisualiser: removed multithreading. (diff)
downloadcuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.gz
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.bz2
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.lz
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.xz
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.tar.zst
cuberite-21b70f17c264de4f7c216cfca580e8254df5cbee.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/BiomeView.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/BiomeView.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/BiomeView.cpp b/Tools/QtBiomeVisualiser/BiomeView.cpp
index 671942440..bbaccb369 100644
--- a/Tools/QtBiomeVisualiser/BiomeView.cpp
+++ b/Tools/QtBiomeVisualiser/BiomeView.cpp
@@ -131,6 +131,21 @@ void BiomeView::chunkAvailable(int a_ChunkX, int a_ChunkZ)
+void BiomeView::reload()
+{
+ if (!hasData())
+ {
+ return;
+ }
+ m_Cache.reload();
+
+ redraw();
+}
+
+
+
+
+
void BiomeView::drawChunk(int a_ChunkX, int a_ChunkZ)
{
if (!hasData())