From 6b10409890ae5f9bdc6ce412a6bda5b996418a74 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 3 Feb 2015 17:18:58 +0100 Subject: [PATCH] Fix add_consecutive_vertices / show_bounds crash --- panda/src/gobj/geomPrimitive.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/gobj/geomPrimitive.cxx b/panda/src/gobj/geomPrimitive.cxx index 8390f6e0f4..ede9dc71a6 100644 --- a/panda/src/gobj/geomPrimitive.cxx +++ b/panda/src/gobj/geomPrimitive.cxx @@ -296,7 +296,7 @@ add_consecutive_vertices(int start, int num_vertices) { PT(GeomVertexArrayData) array_obj = cdata->_vertices.get_write_pointer(); int old_num_rows = array_obj->get_num_rows(); - array_obj->unclean_set_num_rows(old_num_rows + num_vertices); + array_obj->set_num_rows(old_num_rows + num_vertices); GeomVertexWriter index(array_obj, 0); index.set_row_unsafe(old_num_rows);