]> git.xonotic.org Git - xonotic/netradiant.git/commit
Fix over allocating vertexes for OBJ models with multiple surfaces 107/head
authorZack Middleton <zack@cloemail.com>
Wed, 31 Oct 2018 01:21:16 +0000 (20:21 -0500)
committerZack Middleton <zack@cloemail.com>
Wed, 31 Oct 2018 21:14:19 +0000 (16:14 -0500)
commit3705dcfeb9af6317dafb48686997da5d2b681436
tree6e5c8e6bf6da9e17a82cdf66861d56c4bf192ae1
parent2e64b0b99a176aa990cd12b016430c377f51f330
Fix over allocating vertexes for OBJ models with multiple surfaces

Loading Wavefront OBJ models in picomodel (used by radiant and q3map2)
did not reset the surface vertex index when starting a new surface. This
caused there to be unused vertexes, equal to the number of vertexes in
all previous surfaces, at the beginning of each surface. Exponential OBJ
vertex memory usage as number of surfaces increases. It did not affect
displaying or processing the surface faces.
libs/picomodel/pm_obj.c