Fix selectionbox not honoring anaglyph mode 3d distortion
parent
e8b9467905
commit
7935044820
16
src/game.cpp
16
src/game.cpp
|
@ -3199,6 +3199,11 @@ void the_game(
|
||||||
|
|
||||||
smgr->drawAll(); // 'smgr->drawAll();' may go here
|
smgr->drawAll(); // 'smgr->drawAll();' may go here
|
||||||
|
|
||||||
|
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
|
||||||
|
|
||||||
|
if (show_hud)
|
||||||
|
hud.drawSelectionBoxes(hilightboxes);
|
||||||
|
|
||||||
|
|
||||||
//Right eye...
|
//Right eye...
|
||||||
irr::core::vector3df rightEye;
|
irr::core::vector3df rightEye;
|
||||||
|
@ -3223,6 +3228,11 @@ void the_game(
|
||||||
|
|
||||||
smgr->drawAll(); // 'smgr->drawAll();' may go here
|
smgr->drawAll(); // 'smgr->drawAll();' may go here
|
||||||
|
|
||||||
|
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
|
||||||
|
|
||||||
|
if (show_hud)
|
||||||
|
hud.drawSelectionBoxes(hilightboxes);
|
||||||
|
|
||||||
|
|
||||||
//driver->endScene();
|
//driver->endScene();
|
||||||
|
|
||||||
|
@ -3251,9 +3261,11 @@ void the_game(
|
||||||
driver->setMaterial(m);
|
driver->setMaterial(m);
|
||||||
|
|
||||||
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
|
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
|
||||||
|
if((!g_settings->getBool("anaglyph")) && (show_hud))
|
||||||
if (show_hud)
|
{
|
||||||
hud.drawSelectionBoxes(hilightboxes);
|
hud.drawSelectionBoxes(hilightboxes);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Wielded tool
|
Wielded tool
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue