2nd attempt to fix #1788
This commit is contained in:
parent
022b573bae
commit
362f6a069c
@ -5501,9 +5501,9 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||||||
else if (evt.RightDown())
|
else if (evt.RightDown())
|
||||||
{
|
{
|
||||||
m_mouse.position = pos.cast<double>();
|
m_mouse.position = pos.cast<double>();
|
||||||
// // forces a frame render to ensure that m_hover_volume_id is updated even when the user right clicks while
|
// forces a frame render to ensure that m_hover_volume_id is updated even when the user right clicks while
|
||||||
// // the context menu is already shown, ensuring it to disappear if the mouse is outside any volume
|
// the context menu is already shown
|
||||||
// render();
|
render();
|
||||||
if (m_hover_volume_id != -1)
|
if (m_hover_volume_id != -1)
|
||||||
{
|
{
|
||||||
// if right clicking on volume, propagate event through callback (shows context menu)
|
// if right clicking on volume, propagate event through callback (shows context menu)
|
||||||
|
Loading…
Reference in New Issue
Block a user