diff --git a/cpp/open3d/visualization/rendering/filament/FilamentScene.cpp b/cpp/open3d/visualization/rendering/filament/FilamentScene.cpp index 64dffe9dc69..13f2d7800d7 100644 --- a/cpp/open3d/visualization/rendering/filament/FilamentScene.cpp +++ b/cpp/open3d/visualization/rendering/filament/FilamentScene.cpp @@ -590,7 +590,7 @@ void FilamentScene::UpdateGeometry(const std::string& object_name, const size_t color_array_size = n_vertices * 3 * sizeof(float); if (pcloud_is_gpu) { auto color_data = static_cast(malloc(color_array_size)); - memcpy(color_data, cpu_pcloud.GetPointPositions().GetDataPtr(), + memcpy(color_data, cpu_pcloud.GetPointColors().GetDataPtr(), color_array_size); filament::VertexBuffer::BufferDescriptor color_descriptor( color_data, color_array_size, DeallocateBuffer);