Fix includes

Fix collision draw functions not using draw settings
This commit is contained in:
Arnaud Jamin
2024-06-05 09:39:05 -04:00
parent 8949050964
commit 3539881135
4 changed files with 15 additions and 8 deletions
@@ -420,10 +420,10 @@ void FCogDebugDrawHelper::DrawLineTrace(
End, End,
FCogDebug::Settings.ArrowSize, FCogDebug::Settings.ArrowSize,
HasHits ? Settings.HitColor : Settings.NoHitColor, HasHits ? Settings.HitColor : Settings.NoHitColor,
false, Settings.Persistent,
0.0f, Settings.LifeTime,
FCogDebug::GetDebugDepthPriority(0), Settings.DepthPriority,
FCogDebug::GetDebugThickness(0.0f)); Settings.Thickness);
DrawHitResults(World, HitResults, Settings); DrawHitResults(World, HitResults, Settings);
} }
@@ -448,10 +448,10 @@ void FCogDebugDrawHelper::DrawSweep(
End, End,
FCogDebug::Settings.ArrowSize, FCogDebug::Settings.ArrowSize,
Color, Color,
false, Settings.Persistent,
0.0f, Settings.LifeTime,
FCogDebug::GetDebugDepthPriority(0), Settings.DepthPriority,
FCogDebug::GetDebugThickness(0.0f)); Settings.Thickness);
DrawShape(World, Shape, Start, Rotation, FVector::OneVector, Color, Settings.Persistent, Settings.LifeTime, Settings.DepthPriority, Settings.Thickness); DrawShape(World, Shape, Start, Rotation, FVector::OneVector, Color, Settings.Persistent, Settings.LifeTime, Settings.DepthPriority, Settings.Thickness);
@@ -1,5 +1,6 @@
#include "CogDebugPlot.h" #include "CogDebugPlot.h"
#include "CogDebug.h"
#include "CogDebugDraw.h" #include "CogDebugDraw.h"
#include "CogDebugHelper.h" #include "CogDebugHelper.h"
#include "CogImguiHelper.h" #include "CogImguiHelper.h"
@@ -1,5 +1,6 @@
#include "CogDebugReplicator.h" #include "CogDebugReplicator.h"
#include "CogDebug.h"
#include "CogDebugDraw.h" #include "CogDebugDraw.h"
#include "CogDebugLog.h" #include "CogDebugLog.h"
#include "EngineUtils.h" #include "EngineUtils.h"
@@ -227,6 +227,11 @@ void FCogEngineWindow_Plots::RenderPlots(const TArray<FCogDebugPlotEntry*>& Visi
FCogDebugPlotEntry& Entry = *PlotPtr; FCogDebugPlotEntry& Entry = *PlotPtr;
if (Entry.Values.empty())
{
continue;
}
if (Entry.CurrentRow == PlotIndex) if (Entry.CurrentRow == PlotIndex)
{ {
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------