Remove terrain vertex selection and brush button when exiting editMode

pull/556/head
Nelsson Huotari 5 years ago
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…
Cancel
Save