From 5e1b5bae8d0e8a4a7feae76dc5e720521d756ec9 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 18 Oct 2002 00:06:12 +0000 Subject: [PATCH] fixed bins not sorting? --- panda/src/pgraph/cullBinFixed.cxx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/panda/src/pgraph/cullBinFixed.cxx b/panda/src/pgraph/cullBinFixed.cxx index d0cc032d7f..3e4b2f5e49 100644 --- a/panda/src/pgraph/cullBinFixed.cxx +++ b/panda/src/pgraph/cullBinFixed.cxx @@ -49,21 +49,8 @@ CullBinFixed:: //////////////////////////////////////////////////////////////////// void CullBinFixed:: add_object(CullableObject *object) { - // Determine the center of the bounding volume. - const BoundingVolume &volume = object->_geom->get_bound(); - - if (!volume.is_empty() && - volume.is_of_type(GeometricBoundingVolume::get_class_type())) { - const GeometricBoundingVolume *gbv; - DCAST_INTO_V(gbv, &volume); - - LPoint3f center = gbv->get_approx_center(); - nassertv(object->_transform != (const TransformState *)NULL); - center = center * object->_transform->get_mat(); - - int draw_order = object->_state->get_draw_order(); - _objects.push_back(ObjectData(object, draw_order)); - } + int draw_order = object->_state->get_draw_order(); + _objects.push_back(ObjectData(object, draw_order)); } ////////////////////////////////////////////////////////////////////