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.
This commit is contained in:
Kawe Mazidjatari 2024-10-22 12:03:26 +02:00
parent fda4e694d6
commit 1bb531c36b

View File

@ -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);