From c56b2f00479696c1cde5ca443aa90d4fffc2e4fd Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 7 Jun 2009 11:24:42 +0000 Subject: [PATCH] Also take the current BVH nodes transform into account. Modified Files: src/FDM/groundcache.cxx --- src/FDM/groundcache.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()); -- 2.39.5