]> git.lizzy.rs Git - minetest.git/commitdiff
Fix misplaced selection box in some situations
authorsapier <Sapier at GMX dot net>
Mon, 26 May 2014 20:11:42 +0000 (22:11 +0200)
committersapier <Sapier at GMX dot net>
Mon, 26 May 2014 20:47:40 +0000 (22:47 +0200)
src/drawscene.cpp

index 218ddec68053de1585010456e60da20ecff228f6..f7b916a8cbd9369f243193b7bfc5066af1cecf02 100644 (file)
@@ -401,6 +401,7 @@ void draw_plain(Camera& camera, bool show_hud, Hud& hud,
                std::vector<aabb3f> hilightboxes, video::IVideoDriver* driver,
                bool draw_wield_tool, Client& client, gui::IGUIEnvironment* guienv)
 {
+       driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
 
        draw_selectionbox(driver, hud, hilightboxes, show_hud);