mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:17:35 +02:00
make sure camera is configured on connect
This commit is contained in:
parent
6f2a1b9802
commit
47f45c3af1
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,12 @@ bool TV3DManager::isConnected() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TV3DManager::connect() {
|
void TV3DManager::connect() {
|
||||||
|
Application* app = Application::getInstance();
|
||||||
|
int width = app->getGLWidget()->width();
|
||||||
|
int height = app->getGLWidget()->height();
|
||||||
|
Camera& camera = *app->getCamera();
|
||||||
|
|
||||||
|
configureCamera(camera, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue