mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
Fix includes
Fix collision draw functions not using draw settings
This commit is contained in:
@@ -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)
|
||||
{
|
||||
//--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user