mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
Fix assertion when rendering bounding volumes (broken since 6f8b379)
This commit is contained in:
parent
193e4b5f59
commit
9bfc425b75
@ -105,6 +105,8 @@ add_object(CullableObject *object, const CullTraverser *traverser) {
|
||||
static const LColor flash_multisample_color(0.78f, 0.05f, 0.81f, 1.0f);
|
||||
static const LColor flash_dual_color(0.92, 0.01f, 0.01f, 1.0f);
|
||||
|
||||
nassertv(object->_draw_callback != nullptr || object->_geom != nullptr);
|
||||
|
||||
bool force = !traverser->get_effective_incomplete_render();
|
||||
Thread *current_thread = traverser->get_current_thread();
|
||||
CullBinManager *bin_manager = CullBinManager::get_global_ptr();
|
||||
|
@ -232,7 +232,7 @@ draw_bounding_volume(const BoundingVolume *vol,
|
||||
if (bounds_viz != (Geom *)NULL) {
|
||||
_geoms_pcollector.add_level(2);
|
||||
CullableObject *outer_viz =
|
||||
new CullableObject(move(bounds_viz), get_bounds_outer_viz_state(),
|
||||
new CullableObject(bounds_viz, get_bounds_outer_viz_state(),
|
||||
internal_transform);
|
||||
_cull_handler->record_object(outer_viz, this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user