]> git.mxchange.org Git - flightgear.git/commitdiff
Set far camera reference frame to ABSOLUTE_RF
authortimoore <timoore>
Thu, 1 Jan 2009 09:35:15 +0000 (09:35 +0000)
committerTim Moore <timoore@redhat.com>
Sat, 3 Jan 2009 22:56:58 +0000 (23:56 +0100)
This was lost when I stopped cloning the near camera to make the far
camera. The result was a lot of breakage, including explicit camera
configurations not working and various ordering issues too.

src/Main/CameraGroup.cxx

index 06dab8efa471b7eafa0e8b909a47afe07ef16c0f..2ff1bb16921b4ecdf66a8f575f94cb35ef812f8a 100644 (file)
@@ -139,6 +139,7 @@ CameraInfo* CameraGroup::addCamera(unsigned flags, Camera* camera,
         farCamera->setGraphicsContext(camera->getGraphicsContext());
         farCamera->setCullingMode(camera->getCullingMode());
         farCamera->setInheritanceMask(camera->getInheritanceMask());
+        farCamera->setReferenceFrame(Transform::ABSOLUTE_RF);
         // Each camera's viewport is written when the window is
         // resized; if the the viewport isn't copied here, it gets updated
         // twice and ends up with the wrong value.