mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue