update canvas removal

This commit is contained in:
scawful
2022-07-09 22:54:54 -04:00
parent 982cc789fe
commit 939b9d6d0d

View File

@@ -57,8 +57,8 @@ void Canvas::Update() {
if (ImGui::BeginPopup("context")) { if (ImGui::BeginPopup("context")) {
if (dragging_select_) points_.resize(points_.size() - 2); if (dragging_select_) points_.resize(points_.size() - 2);
dragging_select_ = false; dragging_select_ = false;
if (ImGui::MenuItem("Remove one", nullptr, false, points_.Size > 0)) { if (ImGui::MenuItem("Remove all", nullptr, false, points_.Size > 0)) {
points_.resize(points_.size() - 2); points_.clear();
} }
ImGui::EndPopup(); ImGui::EndPopup();
} }