Browse Source

*** empty log message ***

Josh Yelon 18 years ago
parent
commit
ee2fd9311c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/gobj/geomVertexArrayData.I

+ 3 - 0
panda/src/gobj/geomVertexArrayData.I

@@ -391,6 +391,9 @@ INLINE unsigned char *GeomVertexArrayDataHandle::
 get_pointer() {
   nassertr(_writable, NULL);
   check_resident();
+  if (_cdata->_data.size() == 0) {
+    return NULL;
+  }
   return &_cdata->_data[0];
 }