Skip to content

Commit

Permalink
Fixed biome mixer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaysmito101 committed Oct 7, 2023
1 parent 919e51d commit b880926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions TerraForge3D/src/Generators/BiomeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ BiomeManager::BiomeManager(ApplicationState* appState)
break;
}
}

this->Resize();
}

BiomeManager::~BiomeManager()
Expand Down
2 changes: 1 addition & 1 deletion TerraForge3D/src/Generators/BiomeMixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void BiomeMixer::Update(GeneratorData* heightmapData, GeneratorData* m_SwapBuffe

if (biomeManagers.size() > 1)
{
biomeManagers[1]->GetBiomeData()->CopyTo(heightmapData);
biomeManagers[0]->GetBiomeData()->CopyTo(heightmapData);
}
else {
// TODO: Remove this hack
Expand Down

0 comments on commit b880926

Please sign in to comment.