summaryrefslogtreecommitdiff
path: root/solar.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-07 11:49:20 +0000
committerrodri <rgl@antares-labs.eu>2024-08-07 11:49:20 +0000
commit02597db21d25fedde53513967cd979d38acbceec (patch)
tree8bce24e8692f11a4cf792cd1925bca15ff7be7a3 /solar.c
parent978b44f127e2eeda9ec73849ab9041ead5519ca6 (diff)
download3dee-02597db21d25fedde53513967cd979d38acbceec.tar.gz
3dee-02597db21d25fedde53513967cd979d38acbceec.tar.bz2
3dee-02597db21d25fedde53513967cd979d38acbceec.zip
use the new readobjmodel function.
Diffstat (limited to 'solar.c')
-rw-r--r--solar.c7
1 files changed, 1 insertions, 6 deletions
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