From 09fe314fc0b1134217480dfe9ca45a306e9cf600 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 20 Apr 2006 04:18:35 +0000 Subject: [PATCH] move inline function to .I --- panda/src/gobj/geomVertexData.I | 18 ++++++++++++++++++ panda/src/gobj/geomVertexData.cxx | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/panda/src/gobj/geomVertexData.I b/panda/src/gobj/geomVertexData.I index f14150b3ed..8afe90fc46 100644 --- a/panda/src/gobj/geomVertexData.I +++ b/panda/src/gobj/geomVertexData.I @@ -167,6 +167,24 @@ modify_array(int i) { return writer.modify_array(i); } +//////////////////////////////////////////////////////////////////// +// Function: GeomVertexData::set_array +// Access: Published +// Description: Replaces the indicated vertex data array with +// a completely new array. You should be careful that +// the new array has the same length and format as the +// old one, unless you know what you are doing. +// +// Don't call this in a downstream thread unless you +// don't mind it blowing away other changes you might +// have recently made in an upstream thread. +//////////////////////////////////////////////////////////////////// +INLINE void GeomVertexData:: +set_array(int i, const GeomVertexArrayData *array) { + GeomVertexDataPipelineWriter writer(this, Thread::get_current_pipeline_stage(), true); + writer.set_array(i, array); +} + //////////////////////////////////////////////////////////////////// // Function: GeomVertexData::get_transform_table // Access: Published diff --git a/panda/src/gobj/geomVertexData.cxx b/panda/src/gobj/geomVertexData.cxx index 45f9ce5c14..00151e45ac 100644 --- a/panda/src/gobj/geomVertexData.cxx +++ b/panda/src/gobj/geomVertexData.cxx @@ -306,24 +306,6 @@ clear_rows() { cdata->_animated_vertices.clear(); } -//////////////////////////////////////////////////////////////////// -// Function: GeomVertexData::set_array -// Access: Published -// Description: Replaces the indicated vertex data array with -// a completely new array. You should be careful that -// the new array has the same length and format as the -// old one, unless you know what you are doing. -// -// Don't call this in a downstream thread unless you -// don't mind it blowing away other changes you might -// have recently made in an upstream thread. -//////////////////////////////////////////////////////////////////// -INLINE void GeomVertexData:: -set_array(int i, const GeomVertexArrayData *array) { - GeomVertexDataPipelineWriter writer(this, Thread::get_current_pipeline_stage(), true); - writer.set_array(i, array); -} - //////////////////////////////////////////////////////////////////// // Function: GeomVertexData::set_transform_table // Access: Published