From a5e447d94d5b9e1e6b841ae40413a5873e5b944e Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 9 Oct 2008 18:44:12 +0000 Subject: [PATCH] whoops, bug in animation optimization --- panda/src/gobj/geomVertexData.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/gobj/geomVertexData.cxx b/panda/src/gobj/geomVertexData.cxx index 9ddce956de..07c734a1b6 100644 --- a/panda/src/gobj/geomVertexData.cxx +++ b/panda/src/gobj/geomVertexData.cxx @@ -1540,7 +1540,7 @@ update_animated_vertices(GeomVertexData::CData *cdata, Thread *current_thread) { data_column->get_numeric_type() == NT_float32) { // Table of vectors is a table of LVector3f's. Optimize this // common case. - int data_index = new_format->get_array_with(new_format->get_point(ci)); + int data_index = new_format->get_array_with(new_format->get_vector(ci)); PT(GeomVertexArrayData) data_array = new_data->modify_array(data_index); PT(GeomVertexArrayDataHandle) data_handle = data_array->modify_handle(); unsigned char *datat = data_handle->get_write_pointer();