mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
gobj: prevent GeomVertexReader/Writer.set_row with negative row
This commit is contained in:
parent
a7d9baeeb8
commit
511b0e7af3
@ -328,6 +328,7 @@ set_row_unsafe(int row) {
|
||||
*/
|
||||
INLINE void GeomVertexReader::
|
||||
set_row(int row) {
|
||||
nassertv(row >= 0);
|
||||
_start_row = row;
|
||||
if (has_column()) {
|
||||
bool result = set_pointer(_start_row);
|
||||
|
@ -297,6 +297,7 @@ set_row_unsafe(int row) {
|
||||
*/
|
||||
INLINE void GeomVertexWriter::
|
||||
set_row(int row) {
|
||||
nassertv(row >= 0);
|
||||
_start_row = row;
|
||||
if (has_column()) {
|
||||
set_pointer(_start_row);
|
||||
|
Loading…
x
Reference in New Issue
Block a user