From 9e281f1aa4ced673b266f8d45a5bf5a0ef2c0920 Mon Sep 17 00:00:00 2001
From: Fabian Paus <fabian.paus@kit.edu>
Date: Wed, 5 Jan 2022 09:19:28 +0100
Subject: [PATCH] ArViz: Fix recursion on commit call

---
 source/RobotAPI/components/ArViz/Client/Client.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source/RobotAPI/components/ArViz/Client/Client.h b/source/RobotAPI/components/ArViz/Client/Client.h
index 68e086ac5..5500e7747 100644
--- a/source/RobotAPI/components/ArViz/Client/Client.h
+++ b/source/RobotAPI/components/ArViz/Client/Client.h
@@ -319,7 +319,9 @@ namespace viz
 
         void commit(Layer const& layer)
         {
-            commit({layer});
+            std::vector<Layer> layers;
+            layers.push_back(layer);
+            commit(layers);
         }
 
         void commit(std::vector<Layer> const& layers);
-- 
GitLab