commit 52add751b7654133ac6edb29757ab37b1987ff02
parent 19d6829dbeb93837ea4a977b43949c41b1972a46
Author: William Casarin <jb55@jb55.com>
Date: Sun, 21 Jul 2019 15:08:20 -0700
ply: fix loading too many verts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ply.c b/src/ply.c
@@ -238,7 +238,7 @@ int parse_ply_with_mkgeom(const char *filename, struct mdl_geometry *mdlgeom)
if (success) {
mkgeom->num_indices = ninds * 3;
- mkgeom->num_verts = nverts * 3;
+ mkgeom->num_verts = nverts;
vec3_copy(min, mdlgeom->min);
vec3_copy(max, mdlgeom->max);