Skip to content

Commit

Permalink
fixed ORB_SLAM preproc breaking gui conditionals (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurence-diack-pk authored Feb 4, 2025
1 parent ddaf2f5 commit 618e839
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions guilib/src/PreferencesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4892,10 +4892,13 @@ void PreferencesDialog::setParameter(const std::string & key, const std::string
{
if(valueInt==2 && combo->objectName().toStdString().compare(Parameters::kOptimizerStrategy()) == 0)
{
if(
#ifndef RTABMAP_ORB_SLAM
if(Optimizer::isAvailable(Optimizer::kTypeG2O))
Optimizer::isAvailable(Optimizer::kTypeG2O)
#else
true
#endif
{
){
UWARN("Trying to set \"%s\" to GTSAM but RTAB-Map isn't built "
"with GTSAM. Falling back to g2o.",
combo->objectName().toStdString().c_str());
Expand Down

0 comments on commit 618e839

Please sign in to comment.