From 0267b512527b85af6cd815bb9215bd659b75931e Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 13 May 2020 13:05:33 +0200 Subject: Added basic color --- src/parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parse.c') diff --git a/src/parse.c b/src/parse.c index ca3747c..c0952c0 100644 --- a/src/parse.c +++ b/src/parse.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/09 11:02:00 by charles #+# #+# */ -/* Updated: 2020/05/13 10:15:43 by charles ### ########.fr */ +/* Updated: 2020/05/13 12:25:46 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -155,8 +155,8 @@ int parse(char *filepath, t_object *object) ft_veciter_ret(indices, st_iter_func_decrement_uint); object->vertices = (float*)ft_vectobuf32(vertices); object->indices = (unsigned int*)ft_vectobuf32(indices); - object->vertices_len = vertices->size; - object->indices_len = indices->size; + object->vertices_len = vertices->size / 4; + object->indices_len = indices->size / 3; ft_vecdestroy(vertices, NULL); ft_vecdestroy(indices, NULL); return (0); -- cgit