mirror of https://github.com/TTimo/GtkRadiant.git
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:
commit
a92bb7b602
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue