mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 12:07:51 +03:00
Second step toward fixing terrain selection issues.
This commit is contained in:
parent
18ea4d8eb2
commit
008bf64dd9
5 changed files with 60 additions and 5 deletions
20
apps/opencs/view/render/commands.cpp
Normal file
20
apps/opencs/view/render/commands.cpp
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue