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,
FCogDebug::Settings.ArrowSize,
HasHits ? Settings.HitColor : Settings.NoHitColor,
false,
0.0f,
FCogDebug::GetDebugDepthPriority(0),
FCogDebug::GetDebugThickness(0.0f));
Settings.Persistent,
Settings.LifeTime,
Settings.DepthPriority,
Settings.Thickness);
DrawHitResults(World, HitResults, Settings);
}
@@ -448,10 +448,10 @@ void FCogDebugDrawHelper::DrawSweep(
End,
FCogDebug::Settings.ArrowSize,
Color,
false,
0.0f,
FCogDebug::GetDebugDepthPriority(0),
FCogDebug::GetDebugThickness(0.0f));
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 "CogDebug.h"
#include "CogDebugDraw.h"
#include "CogDebugHelper.h"
#include "CogImguiHelper.h"
@@ -1,5 +1,6 @@
#include "CogDebugReplicator.h"
#include "CogDebug.h"
#include "CogDebugDraw.h"
#include "CogDebugLog.h"
#include "EngineUtils.h"
@@ -227,6 +227,11 @@ void FCogEngineWindow_Plots::RenderPlots(const TArray<FCogDebugPlotEntry*>& Visi
FCogDebugPlotEntry& Entry = *PlotPtr;
if (Entry.Values.empty())
{
continue;
}
if (Entry.CurrentRow == PlotIndex)
{
//--------------------------------------------------------------------------------