Let Esc and a click on empty space deselect Design feature and body rows

This commit is contained in:
SoftFever
2026-10-05 02:50:38 +08:00
parent a29e3078e8
commit 4cb6ca7ecb
7 changed files with 36 additions and 5 deletions
+5
View File
@@ -899,6 +899,11 @@ void DesignCanvas::set_on_solid_selection_changed(std::function<void(int, int, i
};
}
void DesignCanvas::set_on_empty_pick(std::function<void()> cb)
{
m_sketch_tool.on_empty_pick = std::move(cb);
}
void DesignCanvas::select_body(int body)
{
m_sketch_tool.select_body(body);