Skip to content

Commit 7935044

Browse files
sapierkahrl
sapier
authored andcommittedSep 4, 2013
Fix selectionbox not honoring anaglyph mode 3d distortion
1 parent e8b9467 commit 7935044

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
 

‎src/game.cpp

+14-2
Original file line numberDiff line numberDiff line change
@@ -3199,6 +3199,11 @@ void the_game(
31993199

32003200
smgr->drawAll(); // 'smgr->drawAll();' may go here
32013201

3202+
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
3203+
3204+
if (show_hud)
3205+
hud.drawSelectionBoxes(hilightboxes);
3206+
32023207

32033208
//Right eye...
32043209
irr::core::vector3df rightEye;
@@ -3223,6 +3228,11 @@ void the_game(
32233228

32243229
smgr->drawAll(); // 'smgr->drawAll();' may go here
32253230

3231+
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
3232+
3233+
if (show_hud)
3234+
hud.drawSelectionBoxes(hilightboxes);
3235+
32263236

32273237
//driver->endScene();
32283238

@@ -3251,9 +3261,11 @@ void the_game(
32513261
driver->setMaterial(m);
32523262

32533263
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
3254-
3255-
if (show_hud)
3264+
if((!g_settings->getBool("anaglyph")) && (show_hud))
3265+
{
32563266
hud.drawSelectionBoxes(hilightboxes);
3267+
}
3268+
32573269
/*
32583270
Wielded tool
32593271
*/

0 commit comments

Comments
 (0)
Please sign in to comment.