From bc7f5e6da75c9011999ddab39e5d9d7f857703e1 Mon Sep 17 00:00:00 2001 From: Martin Vonheim Larsen Date: Tue, 2 Jun 2020 13:02:22 +0200 Subject: [PATCH] Properly handle basis in Unit3::operator= If the basis was already cached we reset it to the cached basis of `u`. --- gtsam/geometry/Unit3.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtsam/geometry/Unit3.h b/gtsam/geometry/Unit3.h index f1a9c1a69..24a8c0219 100644 --- a/gtsam/geometry/Unit3.h +++ b/gtsam/geometry/Unit3.h @@ -90,6 +90,8 @@ public: /// Copy assignment Unit3& operator=(const Unit3 & u) { p_ = u.p_; + B_ = u.B_; + H_B_ = u.H_B_; return *this; }