From 1bb531c36bf22bbdc78bf4393eb5f7ce7e895ccb Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:03:26 +0200 Subject: [PATCH] Recast: add option to reset shape volume attributes When you edit a shape volume, you might want to fully reset it and start over again. --- src/naveditor/ShapeVolumeTool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/naveditor/ShapeVolumeTool.cpp b/src/naveditor/ShapeVolumeTool.cpp index d0dbf2c2..361d549c 100644 --- a/src/naveditor/ShapeVolumeTool.cpp +++ b/src/naveditor/ShapeVolumeTool.cpp @@ -328,6 +328,11 @@ void ShapeVolumeTool::handleMenu() vol.flags = (unsigned short)flags; } + if (ImGui::Button("Reset Shape##ShapeVolumeModify")) + { + vol = m_shapeCopy; + } + if (ImGui::Button("Delete Shape##ShapeVolumeModify")) { geom->deleteShapeVolume(m_selectedVolumeIndex);