projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed bounding volume issue
[laserbrain_demo]
/
src
/
snode.cc
diff --git
a/src/snode.cc
b/src/snode.cc
index
eee5fce
..
fd37f24
100644
(file)
--- a/
src/snode.cc
+++ b/
src/snode.cc
@@
-330,7
+330,7
@@
AABox SceneNode::get_bounds() const
calc_bounding_aabox(&sub_aabb, &sub_aabb, &tmp);
}
- AABox aabb;
- calc_bounding_aabox(&aabb, &local_bvol, &sub_aabb);
+ AABox aabb = get_node_bounds();
+ calc_bounding_aabox(&aabb, &aabb, &sub_aabb);
return aabb;
}