1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 20:09:43 +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() void CSVRender::TerrainSelection::activate()
{ {
mParentNode->addChild(mSelectionNode); if (!mParentNode->containsNode(mSelectionNode)) mParentNode->addChild(mSelectionNode);
} }
void CSVRender::TerrainSelection::deactivate() void CSVRender::TerrainSelection::deactivate()
{ {
mParentNode->removeChild(mSelectionNode); if (mParentNode->containsNode(mSelectionNode)) mParentNode->removeChild(mSelectionNode);
} }
void CSVRender::TerrainSelection::update() void CSVRender::TerrainSelection::update()

View file

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