Browse Source

gobj: clarify range of GeomPrimitive::offset_vertices() parameters

rdb 6 years ago
parent
commit
3e99d16eb1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/gobj/geomPrimitive.cxx

+ 3 - 0
panda/src/gobj/geomPrimitive.cxx

@@ -470,6 +470,9 @@ offset_vertices(int offset) {
  * primitive.  Unlike the other version of offset_vertices, this makes the
  * primitive.  Unlike the other version of offset_vertices, this makes the
  * geometry indexed if it isn't already.
  * geometry indexed if it isn't already.
  *
  *
+ * Note that end_row indicates one past the last row that should be offset.
+ * In other words, the number of vertices touched is (end_row - begin_row).
+ *
  * Don't call this in a downstream thread unless you don't mind it blowing
  * 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.
  * away other changes you might have recently made in an upstream thread.
  */
  */