texture swapper: fix render update

This commit is contained in:
Skarn
2022-02-28 01:58:24 +03:00
parent 3200dc6b1e
commit 8f5b39487c

View File

@@ -1271,6 +1271,7 @@ int MapChunk::addTexture(scoped_blp_texture_reference texture)
void MapChunk::switchTexture(scoped_blp_texture_reference const& oldTexture, scoped_blp_texture_reference newTexture)
{
texture_set->replace_texture(oldTexture, std::move (newTexture));
registerChunkUpdate(ChunkUpdateFlags::ALPHAMAP);
}
bool MapChunk::paintTexture(glm::vec3 const& pos, Brush* brush, float strength, float pressure, scoped_blp_texture_reference texture)