Fix add_consecutive_vertices / show_bounds crash

This commit is contained in:
rdb 2015-02-03 17:18:58 +01:00
parent 083e160f89
commit 6b10409890

View File

@ -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);