From: frohlich Date: Tue, 7 Nov 2006 05:47:00 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f6456b1f85ef536c1dc7cc634cb4db7ff769799;p=simgear.git Modified Files: simgear/scene/util/SGUpdateVisitor.hxx: Only traverse active children. --- diff --git a/simgear/scene/util/SGUpdateVisitor.hxx b/simgear/scene/util/SGUpdateVisitor.hxx index 7fdba11f..4f3a0f49 100644 --- a/simgear/scene/util/SGUpdateVisitor.hxx +++ b/simgear/scene/util/SGUpdateVisitor.hxx @@ -31,36 +31,8 @@ class SGUpdateVisitor : public osgUtil::UpdateVisitor { public: SGUpdateVisitor() { -// setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); + setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); } -// virtual void apply(osg::Transform& transform) -// { -// osg::Matrix matrix = mModelViewMatrix; -// transform.computeLocalToWorldMatrix(mModelViewMatrix, this); - -// handle_callbacks_and_traverse(transform); - -// mModelViewMatrix = matrix; -// } - -// virtual osg::Vec3 getEyePoint() const -// { -// osg::Matrix matrix; -// matrix.invert(mModelViewMatrix); -// return matrix.preMult(osg::Vec3(0, 0, 0)); -// } - -// protected: -// osg::Matrix mModelViewMatrix; }; -// #include - -// class SGNodeCallback : public osg::NodeCallback { -// public: -// virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) -// { -// } -// }; - #endif