Set fixed FOV for the wielded item
authorKahrl <kahrl@gmx.net>
Mon, 6 Feb 2012 22:12:33 +0000 (23:12 +0100)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 10 Mar 2012 16:15:31 +0000 (18:15 +0200)
src/camera.cpp

index 041dd9de51bfd26f38eb7fba6474dc32a6c470a0..b9e1273c6e144d908df65fa1dad8ea86fd3011ca 100644 (file)
@@ -504,7 +504,7 @@ void Camera::drawWieldedTool()
        // Draw the wielded node (in a separate scene manager)
        scene::ICameraSceneNode* cam = m_wieldmgr->getActiveCamera();
        cam->setAspectRatio(m_cameranode->getAspectRatio());
-       cam->setFOV(m_cameranode->getFOV());
+       cam->setFOV(72.0*PI/180.0);
        cam->setNearValue(0.1);
        cam->setFarValue(100);
        m_wieldmgr->drawAll();