Skip to content

Commit

Permalink
send mouse hover event only on spawn preview
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jul 30, 2021
1 parent 59a2faf commit 27d104a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 27d104a

Please sign in to comment.