From 7f04062fdcbe9eaaaa5827b6e721f2f3e384cdcc Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 22 Apr 2020 03:34:20 -0500 Subject: was setting the scale to 0 after flattening, also was cleaning the gr before I was done with it. >_> --- src/hackvr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/hackvr.c b/src/hackvr.c index fc6c483..e998bfe 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -522,11 +522,11 @@ int hackvr_handler(char *line) { for(j=0;global.shape[j];j++) { if(!strcmp(global.shape[j]->id,gr->id)) { (*global.shape[j])=apply_group_relative((*global.shape[j]),0); - gr->r=(c3_rot_t){(degrees){0},(degrees){0},(degrees){0}}; - gr->p=(c3_t){0,0,0}; - gr->s=(c3_t){0,0,0}; } - } + } + gr->r=(c3_rot_t){(degrees){0},(degrees){0},(degrees){0}}; + gr->p=(c3_t){0,0,0}; + gr->s=(c3_t){1,1,1}; } } } @@ -536,11 +536,11 @@ int hackvr_handler(char *line) { for(j=0;global.shape[j];j++) { if(!strcmp(global.shape[j]->id,gr->id)) { (*global.shape[j])=apply_group_relative((*global.shape[j]),0); - gr->r=(c3_rot_t){(degrees){0},(degrees){0},(degrees){0}}; - gr->p=(c3_t){0,0,0}; - gr->s=(c3_t){0,0,0}; } } + gr->r=(c3_rot_t){(degrees){0},(degrees){0},(degrees){0}}; + gr->p=(c3_t){0,0,0}; + gr->s=(c3_t){1,1,1}; } } return ret; -- cgit v1.2.3