Skip to content

Commit 3e99d16

Browse files
committed
gobj: clarify range of GeomPrimitive::offset_vertices() parameters
1 parent dae762f commit 3e99d16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

panda/src/gobj/geomPrimitive.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,9 @@ offset_vertices(int offset) {
470470
* primitive. Unlike the other version of offset_vertices, this makes the
471471
* geometry indexed if it isn't already.
472472
*
473+
* Note that end_row indicates one past the last row that should be offset.
474+
* In other words, the number of vertices touched is (end_row - begin_row).
475+
*
473476
* Don't call this in a downstream thread unless you don't mind it blowing
474477
* away other changes you might have recently made in an upstream thread.
475478
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy