summaryrefslogtreecommitdiff
path: root/solar.c
diff options
context:
space:
mode:
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