From f2b04d2bf85c530b908d82af1c5e5356ab3b93a8 Mon Sep 17 00:00:00 2001 From: Fabian Paus <fabian.paus@kit.edu> Date: Mon, 3 Jan 2022 15:16:21 +0100 Subject: [PATCH] ArViz: Fix compile error Signed-off-by: Fabian Paus <fabian.paus@kit.edu> --- source/RobotAPI/components/ArViz/Client/Client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/RobotAPI/components/ArViz/Client/Client.h b/source/RobotAPI/components/ArViz/Client/Client.h index 53c33e17b..9ba175fda 100644 --- a/source/RobotAPI/components/ArViz/Client/Client.h +++ b/source/RobotAPI/components/ArViz/Client/Client.h @@ -107,7 +107,7 @@ namespace viz { std::vector<viz::Layer> layers; viz::Layer& newLayer = layers.emplace_back(this->layer(name)); - if (element != nullptr) + if (element) { newLayer.add(element); } -- GitLab