mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 00:45:32 +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)
|
||||
{
|
||||
if(mShapeBrushScenetool)
|
||||
{
|
||||
toolbar->removeTool (mShapeBrushScenetool);
|
||||
}
|
||||
|
||||
if (mTerrainShapeSelection)
|
||||
{
|
||||
mTerrainShapeSelection.reset();
|
||||
}
|
||||
|
||||
EditMode::deactivate(toolbar);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue