1
0

QtBiomeVisualiser: generator source is read from generator setup ini.

This commit is contained in:
madmaxoft
2014-09-22 18:33:18 +02:00
parent 10c5d50566
commit 583532e1b9
3 changed files with 13 additions and 16 deletions

View File

@@ -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();
}