]> git.mxchange.org Git - flightgear.git/commitdiff
Also take the current BVH nodes transform into account.
authorfrohlich <frohlich>
Sun, 7 Jun 2009 11:24:42 +0000 (11:24 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 11 Jun 2009 14:05:20 +0000 (16:05 +0200)
Modified Files:
src/FDM/groundcache.cxx

src/FDM/groundcache.cxx

index e2414806c96da068a08caa6f6d0075d34c7c21d9..6a27268cf65c15d48c48f548efb975e8e2217558 100644 (file)
@@ -474,11 +474,10 @@ public:
 
         if (_id == transform.getId()) {
             _foundId = true;
-            return;
+        } else {
+            transform.traverse(*this);
         }
         
-        transform.traverse(*this);
-        
         if (_foundId) {
             SGMatrixd toWorld = transform.getToWorldTransform(_time);
             SGVec3d referencePoint = _bodyToWorld.xformPt(SGVec3d::zeros());