Second step toward fixing terrain selection issues.

This commit is contained in:
Atahualpa 2021-05-10 14:20:53 +02:00
parent 18ea4d8eb2
commit 008bf64dd9
5 changed files with 60 additions and 5 deletions

View file

@ -0,0 +1,20 @@
#include "commands.hpp"
#include <components/esm/loadland.hpp>
#include "cell.hpp"
#include "terrainselection.hpp"
CSVRender::DrawTerrainSelectionCommand::DrawTerrainSelectionCommand(TerrainSelection& terrainSelection, QUndoCommand* parent)
: mTerrainSelection(terrainSelection)
{ }
void CSVRender::DrawTerrainSelectionCommand::redo()
{
mTerrainSelection.update();
}
void CSVRender::DrawTerrainSelectionCommand::undo()
{
mTerrainSelection.update();
}