From f0e3abc64d1c79c024f588e6d7ccd27e021c4a9a Mon Sep 17 00:00:00 2001 From: =?utf8?q?D=C3=A1niel=20Juh=C3=A1sz?= Date: Mon, 30 Jan 2017 02:47:36 +0100 Subject: [PATCH] Re-add halo highlight (#5130) Due to a rebase mistake halo highlighting was disabled. This commit re-adds that feature. --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index 1cb054cab..840403c42 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3697,6 +3697,7 @@ PointedThing Game::updatePointedThing( { std::vector *selectionboxes = hud->getSelectionBoxes(); selectionboxes->clear(); + hud->setSelectedFaceNormal(v3f(0.0, 0.0, 0.0)); static const bool show_entity_selectionbox = g_settings->getBool( "show_entity_selectionbox"); @@ -3741,6 +3742,10 @@ PointedThing Game::updatePointedThing( } hud->setSelectionPos(intToFloat(result.node_undersurface, BS), camera_offset); + hud->setSelectedFaceNormal(v3f( + result.intersection_normal.X, + result.intersection_normal.Y, + result.intersection_normal.Z)); } // Update selection mesh light level and vertex colors -- 2.25.1