diff options
author | bubnikv <bubnikv@gmail.com> | 2020-03-05 11:56:06 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2020-03-05 11:56:06 +0300 |
commit | a2b7c6945ca240e95f43dcd6968dee2b7076890e (patch) | |
tree | b652befc85c1e31521b6e87303ba976da042a947 /src/slic3r/GUI/Plater.cpp | |
parent | b7bed7f1183e364c406eb690ed346e521d1192a7 (diff) | |
parent | cab42b89ad55da8ee7198428c25ec08d34050b7b (diff) |
Merge remote-tracking branch 'remotes/origin/vb_3dconnexion_refactoring'
Diffstat (limited to 'src/slic3r/GUI/Plater.cpp')
-rw-r--r-- | src/slic3r/GUI/Plater.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index d434ac2d0..2177d622c 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2145,6 +2145,10 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame) // updates camera type from .ini file camera.set_type(get_config("use_perspective_camera")); + // Load the 3DConnexion device database. + mouse3d_controller.load_config(*wxGetApp().app_config); + // Start the background thread to detect and connect to a HID device (Windows and Linux). + // Connect to a 3DConnextion driver (OSX). mouse3d_controller.init(); // Initialize the Undo / Redo stack with a first snapshot. @@ -2156,8 +2160,6 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame) Plater::priv::~priv() { - mouse3d_controller.shutdown(); - if (config != nullptr) delete config; } |