Fix crash when debug drawing Collider2D with no CollisionComponent2D

This commit is contained in:
Lynix 2019-04-03 22:16:11 +02:00
parent 2f5e9e481b
commit ac49048679
1 changed files with 0 additions and 3 deletions

View File

@ -231,9 +231,6 @@ namespace Ndk
{ {
case DebugDraw::Collider2D: case DebugDraw::Collider2D:
{ {
const Nz::Boxf& obb = entityGfx.GetAABB();
CollisionComponent2D& entityCollision2D = entity->GetComponent<CollisionComponent2D>();
Nz::Vector3f offset; Nz::Vector3f offset;
Nz::InstancedRenderableRef renderable = GenerateCollision2DMesh(entity, &offset); Nz::InstancedRenderableRef renderable = GenerateCollision2DMesh(entity, &offset);
if (renderable) if (renderable)