Skip to content

Commit

Permalink
Re-add halo highlight (#5130)
Browse files Browse the repository at this point in the history
Due to a rebase mistake halo highlighting was disabled. This commit
re-adds that feature.
  • Loading branch information
juhdanad authored and Zeno- committed Jan 30, 2017
1 parent 0c9189d commit f0e3abc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game.cpp
Expand Up @@ -3697,6 +3697,7 @@ PointedThing Game::updatePointedThing(
{
std::vector<aabb3f> *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");

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f0e3abc

Please sign in to comment.