diff options
Diffstat (limited to 'src/main_window.cc')
-rw-r--r-- | src/main_window.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main_window.cc b/src/main_window.cc index 26d9601..cd85ae7 100644 --- a/src/main_window.cc +++ b/src/main_window.cc @@ -81,6 +81,7 @@ void MainWindow::open(const QString &path) { slider, &QSlider::setValue); slider->setEnabled(true); + // Settings pane connect(dc, &DroneController::collision, settings_pane, &SettingsPane::addCollision); connect(settings_pane, &SettingsPane::sphereRadiusChanged, [&](double _) { settings_pane->clearCollisions(); }); @@ -88,6 +89,8 @@ void MainWindow::open(const QString &path) { dc, &DroneController::computeCollisions); settings_pane->setEnabled(true); + glw.setPainter(dc); + dc->computeCollisions(.1); pause(); } |