fix update flags for imports
This commit is contained in:
@@ -1300,6 +1300,8 @@ void MapTile::setAlphaImage(QImage const& image, unsigned layer)
|
||||
if (layer >= chunk->texture_set->num())
|
||||
continue;
|
||||
|
||||
chunk->registerChunkUpdate(ChunkUpdateFlags::ALPHAMAP);
|
||||
|
||||
chunk->texture_set->create_temporary_alphamaps_if_needed();
|
||||
auto& temp_alphamaps = chunk->texture_set->getTempAlphamaps()->value();
|
||||
|
||||
@@ -1366,6 +1368,8 @@ void MapTile::setVertexColorImage(QImage const& image, int mode)
|
||||
{
|
||||
MapChunk* chunk = getChunk(k, l);
|
||||
|
||||
chunk->registerChunkUpdate(ChunkUpdateFlags::MCCV);
|
||||
|
||||
glm::vec3* colors = chunk->getVertexColors();
|
||||
|
||||
for (unsigned y = 0; y < SUM; ++y)
|
||||
|
||||
@@ -1813,7 +1813,7 @@ void MapView::setupAssistMenu()
|
||||
(
|
||||
makeCurrent();
|
||||
OpenGL::context::scoped_setter const _(::gl, context());
|
||||
NOGGIT_ACTION_MGR->beginAction(this, Noggit::ActionFlags::eCHUNKS_TEXTURE);
|
||||
NOGGIT_ACTION_MGR->beginAction(this, Noggit::ActionFlags::eCHUNKS_TERRAIN);
|
||||
_world->importAllADTsHeightmaps(adt_import_height_params_multiplier->value(), adt_import_height_params_mode->currentIndex());
|
||||
NOGGIT_ACTION_MGR->endAction();
|
||||
)
|
||||
@@ -1832,7 +1832,7 @@ void MapView::setupAssistMenu()
|
||||
(
|
||||
makeCurrent();
|
||||
OpenGL::context::scoped_setter const _(::gl, context());
|
||||
NOGGIT_ACTION_MGR->beginAction(this, Noggit::ActionFlags::eCHUNKS_TEXTURE);
|
||||
NOGGIT_ACTION_MGR->beginAction(this, Noggit::ActionFlags::eCHUNKS_VERTEX_COLOR);
|
||||
_world->importAllADTVertexColorMaps(adt_import_vcol_params_mode->currentIndex());
|
||||
NOGGIT_ACTION_MGR->endAction();
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user