Fixed warning

release/4.3a0
Richard Roberts 2014-03-01 20:41:05 -05:00
parent 87c2f8a7ff
commit bf1f5037d0
1 changed files with 2 additions and 1 deletions

View File

@ -266,11 +266,12 @@ namespace gtsam { namespace partition {
else else
isLandmark[factor_->key1.index] = true; isLandmark[factor_->key1.index] = true;
} }
if (workspace.dictionary[factor_->key2.index] != -1) if (workspace.dictionary[factor_->key2.index] != -1) {
if (factor_->key2.type == NODE_POSE_3D) if (factor_->key2.type == NODE_POSE_3D)
isCamera[factor_->key2.index] = true; isCamera[factor_->key2.index] = true;
else else
isLandmark[factor_->key2.index] = true; isLandmark[factor_->key2.index] = true;
}
} }
vector<int> nrConstraints(workspace.dictionary.size(), 0); vector<int> nrConstraints(workspace.dictionary.size(), 0);