From 0f4b8c1815b705fcb9865b45f7cd8351363b59fa Mon Sep 17 00:00:00 2001 From: Rajat Singhal Date: Thu, 30 Apr 2020 06:32:40 +0530 Subject: [PATCH] Fix Lidar DrawDebugPoints causing crash (#2614) Make the points non-persistent and reduce Lifetime --- Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp b/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp index 6d8bf1eeb5..1aa75cc494 100644 --- a/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp +++ b/Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp @@ -671,10 +671,10 @@ void ASimModeBase::drawLidarDebugPoints() DrawDebugPoint( this->GetWorld(), uu_point, - 5, //size + 5, // size FColor::Green, - true, //persistent (never goes away) - 0.1 //point leaves a trail on moving object + false, // persistent (never goes away) + 0.03 // LifeTime: point leaves a trail on moving object ); } }