Merge branch 'ground_effects_editor' of https://gitlab.com/T1ti/noggit-red into ground_effects_editor
# Conflicts: # src/noggit/MapTile.cpp # src/noggit/MapView.cpp
This commit is contained in:
@@ -1225,7 +1225,7 @@ QImage MapTile::getAlphamapImage(std::string const& filename)
|
||||
return std::move(image);
|
||||
}
|
||||
|
||||
void MapTile::setHeightmapImage(QImage const& baseimage, float multiplier, int mode, bool tiledEdges) // image
|
||||
<<<<<<<<< Temporary merge branch 1
|
||||
{
|
||||
auto image = baseimage.convertToFormat(QImage::Format_Grayscale16);
|
||||
|
||||
@@ -1448,7 +1448,7 @@ QImage MapTile::getVertexColorsImage()
|
||||
return std::move(image);
|
||||
}
|
||||
|
||||
void MapTile::setVertexColorImage(QImage const& baseimage, int mode, bool tiledEdges)
|
||||
<<<<<<<<< Temporary merge branch 1
|
||||
{
|
||||
QImage image = baseimage.convertToFormat(QImage::Format_RGBA8888);
|
||||
|
||||
|
||||
@@ -1827,7 +1827,6 @@ void MapView::setupAssistMenu()
|
||||
makeCurrent();
|
||||
OpenGL::context::scoped_setter const _(::gl, context());
|
||||
NOGGIT_ACTION_MGR->beginAction(this, Noggit::ActionFlags::eCHUNKS_TERRAIN);
|
||||
_world->importAllADTsHeightmaps(adt_import_height_params_multiplier->value(), adt_import_height_params_mode->currentIndex(), adt_import_height_tiled_edges->isChecked());
|
||||
NOGGIT_ACTION_MGR->endAction();
|
||||
)
|
||||
|
||||
@@ -1846,7 +1845,6 @@ void MapView::setupAssistMenu()
|
||||
makeCurrent();
|
||||
OpenGL::context::scoped_setter const _(::gl, context());
|
||||
NOGGIT_ACTION_MGR->beginAction(this, Noggit::ActionFlags::eCHUNKS_VERTEX_COLOR);
|
||||
_world->importAllADTVertexColorMaps(adt_import_vcol_params_mode->currentIndex(), adt_import_vcol_params_mode_tiled_edges->isChecked());
|
||||
NOGGIT_ACTION_MGR->endAction();
|
||||
)
|
||||
|
||||
|
||||
@@ -94,9 +94,8 @@ namespace Noggit
|
||||
connect(swap_global, &QPushButton::clicked, [this, camera_pos, map_view]() {
|
||||
if (_texture_to_swap)
|
||||
{
|
||||
// ActionManager::instance()->beginAction(map_view, ActionFlags::eCHUNKS_TEXTURE);
|
||||
// TODO : action manager
|
||||
_world->swapTextureGlobal(_texture_to_swap.value());
|
||||
// ActionManager::instance()->endAction();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user