diff --git a/gtsam_unstable/partition/GenericGraph.cpp b/gtsam_unstable/partition/GenericGraph.cpp index 611186c12..1ee462728 100644 --- a/gtsam_unstable/partition/GenericGraph.cpp +++ b/gtsam_unstable/partition/GenericGraph.cpp @@ -266,11 +266,12 @@ namespace gtsam { namespace partition { else 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) isCamera[factor_->key2.index] = true; else isLandmark[factor_->key2.index] = true; + } } vector nrConstraints(workspace.dictionary.size(), 0);