From 82520769622bb234f70baca61cd09fe00da02861 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 12 Sep 2006 19:54:14 +0000 Subject: [PATCH] don't validate LODNodes when force_switch is in effect --- panda/src/pgraph/lodNode.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/panda/src/pgraph/lodNode.cxx b/panda/src/pgraph/lodNode.cxx index a6c8f3b7fc..bedae1dc9e 100644 --- a/panda/src/pgraph/lodNode.cxx +++ b/panda/src/pgraph/lodNode.cxx @@ -643,6 +643,14 @@ do_auto_verify_lods(CullTraverser *trav, CullTraverserData &data) { UpdateSeq seq; get_bounds(seq); CDLockedReader cdata(_cycler); + + if (cdata->_got_force_switch) { + // If we're forcing a particular switch, don't verify the LOD + // sizes, since they don't really apply anymore anyway. Assume + // the user knows what he's doing. + return; + } + if (seq != cdata->_bounds_seq) { // Time to validate the children again. for (int index = 0; index < (int)cdata->_switch_vector.size(); ++index) {