From 02597db21d25fedde53513967cd979d38acbceec Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 7 Aug 2024 11:49:20 +0000 Subject: use the new readobjmodel function. --- solar.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'solar.c') diff --git a/solar.c b/solar.c index 12893ed..4aefd7b 100644 --- a/solar.c +++ b/solar.c @@ -733,7 +733,6 @@ threadmain(int argc, char *argv[]) Channel *keyc; Entity *subject; Model *model; - OBJ *obj; Point lblsiz; int i, j; @@ -750,11 +749,7 @@ threadmain(int argc, char *argv[]) confproc(); - if((obj = objparse("mdl/planet.obj")) == nil) - sysfatal("objparse: %r"); - model = newmodel(); - loadobjmodel(model, obj); - objfree(obj); + model = readobjmodel("mdl/planet.obj"); /* * normalize the vertices so that we can scale * each planet based on its radius -- cgit v1.2.3