diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-07 11:49:20 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-07 11:49:20 +0000 |
commit | 02597db21d25fedde53513967cd979d38acbceec (patch) | |
tree | 8bce24e8692f11a4cf792cd1925bca15ff7be7a3 /solar.c | |
parent | 978b44f127e2eeda9ec73849ab9041ead5519ca6 (diff) | |
download | 3dee-02597db21d25fedde53513967cd979d38acbceec.tar.gz 3dee-02597db21d25fedde53513967cd979d38acbceec.tar.bz2 3dee-02597db21d25fedde53513967cd979d38acbceec.zip |
use the new readobjmodel function.
Diffstat (limited to 'solar.c')
-rw-r--r-- | solar.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |