mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00: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