From 5f3be0ab9a44d5dc0adf96456acf6a7c9b03b3c8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 5 Dec 2008 22:19:41 +0000 Subject: [PATCH] fix flatten plane --- panda/src/pgraph/sceneGraphReducer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pgraph/sceneGraphReducer.cxx b/panda/src/pgraph/sceneGraphReducer.cxx index 27696e1e9e..d22bd791fe 100644 --- a/panda/src/pgraph/sceneGraphReducer.cxx +++ b/panda/src/pgraph/sceneGraphReducer.cxx @@ -438,7 +438,7 @@ r_flatten(PandaNode *grandparent_node, PandaNode *parent_node, << "considering radius of " << *parent_node << ": " << *bs << " vs. " << _combine_radius << "\n"; } - if (bs->is_empty() || bs->get_radius() <= _combine_radius) { + if (!bs->is_infinite() && (bs->is_empty() || bs->get_radius() <= _combine_radius)) { // This node fits within the specified radius; from here on // down, we will have CS_other set, instead of // CS_within_radius.