Commit 061370a7 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE] changed to hopefully nicer precision settings

parent 9de14c77
......@@ -199,10 +199,11 @@ void WMHud::updatePickText( WPickInfo pickInfo )
lock = boost::unique_lock< boost::shared_mutex >( m_updateLock );
std::ostringstream os;
os << "Name: " << pickInfo.getName() << "\n"
<< "Position: " << pickInfo.getPickPosition() << "\n"
<< "Pixel coordinates: " << pickInfo.getPickPixelPosition().first << " " << pickInfo.getPickPixelPosition().second << "\n"
<< "Object normal: " << pickInfo.getPickNormal();
os << std::setprecision( 5 )
<< "Name: " << pickInfo.getName() << "\n"
<< "Position: [" << pickInfo.getPickPosition()[0] << ", " << pickInfo.getPickPosition()[1] << ", " << pickInfo.getPickPosition()[2] << "]\n"
<< "Pixel coordinates: " << pickInfo.getPickPixelPosition().first << " " << pickInfo.getPickPixelPosition().second << "\n"
<< "Object Normal: [" << pickInfo.getPickNormal()[0] << ", " << pickInfo.getPickNormal()[1] << ", " << pickInfo.getPickNormal()[2] << "]\n";
m_pickText = os.str();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment