mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
View navigation improvements: drag limits (per view type) and generic
recentering function to restore default view and adjust it to display the entire scene (right mouse double clic).
This commit is contained in:
@@ -24,8 +24,9 @@ GlmToolkit::AxisAlignedBoundingBox BoundingBoxVisitor::bbox()
|
||||
|
||||
void BoundingBoxVisitor::visit(Node &n)
|
||||
{
|
||||
// use the transform modified during update
|
||||
modelview_ *= n.transform_;
|
||||
// use the transform modified during update modelview_ *= n.transform_;
|
||||
glm::mat4 transform_local = GlmToolkit::transform(n.translation_, n.rotation_, n.scale_);
|
||||
modelview_ *= transform_local;
|
||||
}
|
||||
|
||||
void BoundingBoxVisitor::visit(Group &n)
|
||||
|
||||
Reference in New Issue
Block a user