From ba62811cc8378cb2ad6bd17751b7a6f9b180d5b0 Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Thu, 4 Apr 2024 15:48:14 +0300 Subject: [PATCH] Resolve valgrind issue in 3d module --- modules/3d/src/rgbd/volume_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/3d/src/rgbd/volume_impl.cpp b/modules/3d/src/rgbd/volume_impl.cpp index 72a9388564..0df8defc01 100644 --- a/modules/3d/src/rgbd/volume_impl.cpp +++ b/modules/3d/src/rgbd/volume_impl.cpp @@ -563,6 +563,7 @@ void ColorTsdfVolume::reset() { RGBTsdfVoxel& v = reinterpret_cast(vv); v.tsdf = floatToTsdf(0.0f); v.weight = 0; + v.r = v.g = v.b = 0; }); }