Fix brim ear paint memory leaking & multi-selection with shift+left click (#9167)

* Fix issue that you cannot select multiple brim ears with shift+left click

* Fix brim ear size preview when dragging the slide

* Fix `render_hover_point` memory leaking by using `std::optional`
This commit is contained in:
Noisyfox 2025-04-13 17:32:39 +08:00 committed by GitHub
commit ee07700aa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 13 deletions

View file

@ -108,7 +108,7 @@ private:
const Vec3d m_world_normal = {0, 0, 1};
std::map<GLVolume*, std::shared_ptr<PickRaycaster>> m_mesh_raycaster_map;
GLVolume* m_last_hit_volume;
CacheEntry* render_hover_point = nullptr;
std::optional<CacheEntry> render_hover_point;
bool m_link_text_hover = false;