diff options
author | epoch <epoch@hacking.allowed.org> | 2017-12-24 03:38:01 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2017-12-24 03:38:01 -0600 |
commit | 1182574f3de57375a8dedb01bcb32a14fb43a6fc (patch) | |
tree | 30a6fe03016cf6bfa2d3de493db30cb5c874673a | |
parent | bc55691eb3298c6d01e09872bf1fa3fb67081ae7 (diff) | |
download | hackvr-1182574f3de57375a8dedb01bcb32a14fb43a6fc.tar.gz hackvr-1182574f3de57375a8dedb01bcb32a14fb43a6fc.zip |
I was exporting the point as rotations because I forgot about the offset of objects being in the group_rot too.
-rw-r--r-- | src/hackvr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hackvr.c b/src/hackvr.c index b088087..0c6623e 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -347,7 +347,8 @@ int load_stdin() {//this function returns -1 to quit, 0 to not ask for a redraw, } for(i=0;global.group_rot[i];i++) { if(a[2][0]=='*' || !strcmp(global.group_rot[i]->id,a[2])) { - printf("%s_%s rotate %d %d %d\n",id,a[2],global.group_rot[i]->p.x,global.group_rot[i]->p.y,global.group_rot[i]->p.z); + printf("%s_%s rotate %d %d %d\n",id,a[2],global.group_rot[i]->r.x,global.group_rot[i]->r.y,global.group_rot[i]->r.z); + printf("%s_%s move %d %d %d\n",id,a[2],global.group_rot[i]->p.x,global.group_rot[i]->p.y,global.group_rot[i]->p.z); } } } |