mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
Remove terrain vertex selection and brush button when exiting editMode
This commit is contained in:
parent
8acfa2600f
commit
96be82a047
@ -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…
x
Reference in New Issue
Block a user