Skip to content
Snippets Groups Projects
Commit 69a21f0d authored by Yoel's avatar Yoel
Browse files

Added the groups transform to the rebuidBoundingVolume-method

parent 9bd479f1
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ void Group::rebuildBoundingVolume() {
for (auto shape_bb : shapeList) {
bb = bb + shape_bb->bounds();
}
boundingVolume = bb;
boundingVolume = bb * transform.toWorld;
}
Group shapeGroup(util::Mat4& matrix, std::shared_ptr<Shape> shape) {
Group g(matrix);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment