From 27d104a834c98b451f00c5c49d4e0412c4b4f700 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Fri, 30 Jul 2021 16:09:36 -0700 Subject: [PATCH] send mouse hover event only on spawn preview Signed-off-by: Ian Chen --- src/gui/plugins/scene3d/Scene3D.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/plugins/scene3d/Scene3D.cc b/src/gui/plugins/scene3d/Scene3D.cc index 9de8888404..181a0417ea 100644 --- a/src/gui/plugins/scene3d/Scene3D.cc +++ b/src/gui/plugins/scene3d/Scene3D.cc @@ -889,7 +889,7 @@ void IgnRenderer::HandleMouseEvent() ///////////////////////////////////////////////// void IgnRenderer::BroadcastHoverPos() { - if (this->dataPtr->hoverDirty) + if (this->dataPtr->spawnPreview && this->dataPtr->hoverDirty) { math::Vector3d pos = this->ScreenToScene(this->dataPtr->mouseHoverPos);