mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
Merge pull request #8141 from sethalves/unwedge-hydras-on-linux
workaround to allow models and files to be loaded on linux
This commit is contained in:
commit
53af5db77b
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,7 @@ bool SixenseManager::activate() {
|
||||||
InputPlugin::activate();
|
InputPlugin::activate();
|
||||||
|
|
||||||
#ifdef HAVE_SIXENSE
|
#ifdef HAVE_SIXENSE
|
||||||
|
#if !defined(Q_OS_LINUX)
|
||||||
_container->addMenu(MENU_PATH);
|
_container->addMenu(MENU_PATH);
|
||||||
_container->addMenuItem(PluginType::INPUT_PLUGIN, MENU_PATH, TOGGLE_SMOOTH,
|
_container->addMenuItem(PluginType::INPUT_PLUGIN, MENU_PATH, TOGGLE_SMOOTH,
|
||||||
[this] (bool clicked) { setSixenseFilter(clicked); },
|
[this] (bool clicked) { setSixenseFilter(clicked); },
|
||||||
|
@ -89,6 +90,7 @@ bool SixenseManager::activate() {
|
||||||
_container->addMenuItem(PluginType::INPUT_PLUGIN, MENU_PATH, SHOW_DEBUG_CALIBRATED,
|
_container->addMenuItem(PluginType::INPUT_PLUGIN, MENU_PATH, SHOW_DEBUG_CALIBRATED,
|
||||||
[this] (bool clicked) { _inputDevice->setDebugDrawCalibrated(clicked); },
|
[this] (bool clicked) { _inputDevice->setDebugDrawCalibrated(clicked); },
|
||||||
true, false);
|
true, false);
|
||||||
|
#endif
|
||||||
|
|
||||||
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<controller::UserInputMapper>();
|
||||||
userInputMapper->registerDevice(_inputDevice);
|
userInputMapper->registerDevice(_inputDevice);
|
||||||
|
@ -106,8 +108,10 @@ void SixenseManager::deactivate() {
|
||||||
InputPlugin::deactivate();
|
InputPlugin::deactivate();
|
||||||
|
|
||||||
#ifdef HAVE_SIXENSE
|
#ifdef HAVE_SIXENSE
|
||||||
|
#if !defined(Q_OS_LINUX)
|
||||||
_container->removeMenuItem(MENU_NAME, TOGGLE_SMOOTH);
|
_container->removeMenuItem(MENU_NAME, TOGGLE_SMOOTH);
|
||||||
_container->removeMenu(MENU_PATH);
|
_container->removeMenu(MENU_PATH);
|
||||||
|
#endif
|
||||||
|
|
||||||
_inputDevice->_poseStateMap.clear();
|
_inputDevice->_poseStateMap.clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue