mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 16:06:44 +00:00
Remove terrain vertex selection and brush button when exiting editMode
This commit is contained in:
parent
8acfa2600f
commit
96be82a047
1 changed files with 10 additions and 0 deletions
|
@ -82,6 +82,16 @@ void CSVRender::TerrainShapeMode::activate(CSVWidget::SceneToolbar* toolbar)
|
||||||
|
|
||||||
void CSVRender::TerrainShapeMode::deactivate(CSVWidget::SceneToolbar* toolbar)
|
void CSVRender::TerrainShapeMode::deactivate(CSVWidget::SceneToolbar* toolbar)
|
||||||
{
|
{
|
||||||
|
if(mShapeBrushScenetool)
|
||||||
|
{
|
||||||
|
toolbar->removeTool (mShapeBrushScenetool);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mTerrainShapeSelection)
|
||||||
|
{
|
||||||
|
mTerrainShapeSelection.reset();
|
||||||
|
}
|
||||||
|
|
||||||
EditMode::deactivate(toolbar);
|
EditMode::deactivate(toolbar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue