Merge remote-tracking branch 'origin/master' into 1.11
# Conflicts: # Source/Engine/Level/Scene/SceneRendering.cpp # Source/Engine/Physics/Colliders/Collider.cpp # Source/Engine/Physics/Colliders/Collider.h
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "Editor/Editor.h"
|
||||
#include "Engine/Level/Actors/Light.h"
|
||||
#include "Engine/Physics/Colliders/Collider.h"
|
||||
#include "Engine/Physics/Actors/IPhysicsDebug.h"
|
||||
#endif
|
||||
|
||||
// Debug draw service configuration
|
||||
@@ -1041,11 +1042,12 @@ void DebugDraw::DrawActorsTree(Actor* actor)
|
||||
|
||||
#if USE_EDITOR
|
||||
|
||||
void DebugDraw::DrawColliderDebugPhysics(Collider* collider, RenderView& view)
|
||||
void DebugDraw::DrawDebugPhysics(Actor* actor, RenderView& view)
|
||||
{
|
||||
if (!collider)
|
||||
if (!actor || !actor->IsActiveInHierarchy())
|
||||
return;
|
||||
collider->DrawPhysicsDebug(view);
|
||||
if (auto* physicsDebug = dynamic_cast<IPhysicsDebug*>(actor))
|
||||
physicsDebug->DrawPhysicsDebug(view);
|
||||
}
|
||||
|
||||
void DebugDraw::DrawLightDebug(Light* light, RenderView& view)
|
||||
|
||||
Reference in New Issue
Block a user