2
0
Эх сурвалжийг харах

move inline function to .I

David Rose 19 жил өмнө
parent
commit
09fe314fc0

+ 18 - 0
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

+ 0 - 18
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