From: frohlich Date: Sun, 7 Jun 2009 11:24:42 +0000 (+0000) Subject: Also take the current BVH nodes transform into account. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c56b2f00479696c1cde5ca443aa90d4fffc2e4fd;p=flightgear.git Also take the current BVH nodes transform into account. Modified Files: src/FDM/groundcache.cxx --- diff --git a/src/FDM/groundcache.cxx b/src/FDM/groundcache.cxx index e2414806c..6a27268cf 100644 --- a/src/FDM/groundcache.cxx +++ b/src/FDM/groundcache.cxx @@ -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());