1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

Fixes, cleanup.

This commit is contained in:
Nelsson Huotari 2019-04-07 21:48:55 +03:00
parent 1a08944a8b
commit 20ab7df19f
2 changed files with 4 additions and 4 deletions

View file

@ -110,12 +110,12 @@ void CSVRender::TerrainSelection::toggleSelect(const std::vector<std::pair<int,
void CSVRender::TerrainSelection::activate()
{
mParentNode->addChild(mSelectionNode);
if (!mParentNode->containsNode(mSelectionNode)) mParentNode->addChild(mSelectionNode);
}
void CSVRender::TerrainSelection::deactivate()
{
mParentNode->removeChild(mSelectionNode);
if (mParentNode->containsNode(mSelectionNode)) mParentNode->removeChild(mSelectionNode);
}
void CSVRender::TerrainSelection::update()

View file

@ -6,6 +6,8 @@
#include <string>
#include <memory>
#include <osg/Group>
#include <QWidget>
#include <QEvent>
@ -28,8 +30,6 @@ namespace CSVWidget
namespace CSVRender
{
class PagedWorldspaceWidget;
class TerrainTextureMode : public EditMode
{
Q_OBJECT