goat3d
diff src/goat3d.cc @ 82:70b7c41a4f17
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 11 May 2014 22:04:54 +0300 |
parents | 9785847d52d4 |
children | 57e745dd13c2 |
line diff
1.1 --- a/src/goat3d.cc Thu May 08 23:05:29 2014 +0300 1.2 +++ b/src/goat3d.cc Sun May 11 22:04:54 2014 +0300 1.3 @@ -253,13 +253,18 @@ 1.4 return &g->scn->get_ambient().x; 1.5 } 1.6 1.7 -GOAT3DAPI void goat3d_get_bounds(const struct goat3d *g, float *bmin, float *bmax) 1.8 +GOAT3DAPI int goat3d_get_bounds(const struct goat3d *g, float *bmin, float *bmax) 1.9 { 1.10 AABox bbox = g->scn->get_bounds(); 1.11 + if(bbox == AABox()) { 1.12 + return -1; 1.13 + } 1.14 + 1.15 for(int i=0; i<3; i++) { 1.16 bmin[i] = bbox.bmin[i]; 1.17 bmax[i] = bbox.bmax[i]; 1.18 } 1.19 + return 0; 1.20 } 1.21 1.22 // ---- materials ---- 1.23 @@ -926,7 +931,7 @@ 1.24 1.25 GOAT3DAPI void goat3d_get_node_matrix(const struct goat3d_node *node, float *matrix, long tmsec) 1.26 { 1.27 - node->get_xform(tmsec, (Matrix4x4*)matrix); 1.28 + node->get_node_xform(tmsec, (Matrix4x4*)matrix); 1.29 } 1.30 1.31