From fe3bc0a35bf0eb6ccbee9efce8eecccf75c40ba3 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Mon, 30 Sep 2019 08:35:29 +0300
Subject: [PATCH] Fix for scene trans not being identity

---
 applications/reconstruct/src/main.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/applications/reconstruct/src/main.cpp b/applications/reconstruct/src/main.cpp
index 576f72929..f6548cf32 100644
--- a/applications/reconstruct/src/main.cpp
+++ b/applications/reconstruct/src/main.cpp
@@ -92,6 +92,8 @@ static void run(ftl::Configurable *root) {
 		Eigen::Affine3d t(trans);
 		transform = t.matrix() * r.matrix();
 		LOG(INFO) << "Set transform: " << transform;
+	} else {
+		transform.setIdentity();
 	}
 
 	// Must find pose for each source...
-- 
GitLab