Merge pull request #633 from zturtleman/picomodel-obj-surface-vertexes

Fix over allocating vertexes for OBJ models with multiple surfaces
This commit is contained in:
Jay Dolan 2018-12-10 09:50:35 -05:00 committed by GitHub
commit a92bb7b602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -652,8 +652,9 @@ static picoModel_t *_obj_load( PM_PARAMS_LOAD ){
_obj_error_return( "Error allocating surface" );
}
/* reset face index for surface */
/* reset face index and vertex index for surface */
curFace = 0;
curVertex = 0;
/* set ptr to current surface */
curSurface = newSurface;