From a55442c808051ee0e49711f548d972a988db67b5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 28 Oct 2004 00:26:24 +0000 Subject: [PATCH] remove spurious warning --- panda/src/gobj/geom.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/panda/src/gobj/geom.cxx b/panda/src/gobj/geom.cxx index 4064b5911b..f90aaa42e4 100644 --- a/panda/src/gobj/geom.cxx +++ b/panda/src/gobj/geom.cxx @@ -903,9 +903,16 @@ config() { if (_coords != (Vertexf*)0L && _bind[G_COORD] != G_OFF) { _get_vertex = (_vindex == (ushort*)0L) ? get_vertex_nonindexed : get_vertex_indexed; + } else { - gobj_cat.error() - << "Geom::Config() - no vertex array!" << endl; + // It's not really an error not to have a vertex array; maybe + // there are no vertices in the Geom. This happens sometimes with + // the particle system. It's perfectly legal to have a Geom with + // no vertices--it just doesn't look like much. + + // gobj_cat.error() + // << "Geom::Config() - no vertex array!" << endl; + _get_vertex = get_vertex_noop; } // Set up normal rendering configuration