summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-22 18:33:18 +0200
committermadmaxoft <github@xoft.cz>2014-09-22 21:52:37 +0200
commit583532e1b927e1b9af9782e35c7f2d089e997254 (patch)
tree89eee174088c08acca9e250507adf669274b1540 /Tools/QtBiomeVisualiser/MainWindow.cpp
parentQtBiomeVisualiser: Moved the generator setup into a side-pane. (diff)
downloadcuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar
cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.gz
cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.bz2
cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.lz
cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.xz
cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.tar.zst
cuberite-583532e1b927e1b9af9782e35c7f2d089e997254.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp
index f9915901d..c55d85082 100644
--- a/Tools/QtBiomeVisualiser/MainWindow.cpp
+++ b/Tools/QtBiomeVisualiser/MainWindow.cpp
@@ -53,12 +53,12 @@ MainWindow::~MainWindow()
void MainWindow::newGenerator()
{
- // TODO
-
- // (Re-)open the generator setup dialog:
+ // (Re-)open the generator setup dialog with empty settings:
openGeneratorSetup("");
- // TODO
+ // Set the chunk source:
+ m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(m_GeneratorSetup->getIniFile())));
+ m_BiomeView->redraw();
}
@@ -78,7 +78,7 @@ void MainWindow::openGenerator()
openGeneratorSetup(worldIni.toStdString());
// Set the chunk source:
- m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(worldIni)));
+ m_BiomeView->setChunkSource(std::shared_ptr<BioGenSource>(new BioGenSource(m_GeneratorSetup->getIniFile())));
m_BiomeView->redraw();
}