Fix crash when debug drawing Collider2D with no CollisionComponent2D
This commit is contained in:
parent
2f5e9e481b
commit
ac49048679
|
|
@ -231,9 +231,6 @@ namespace Ndk
|
|||
{
|
||||
case DebugDraw::Collider2D:
|
||||
{
|
||||
const Nz::Boxf& obb = entityGfx.GetAABB();
|
||||
CollisionComponent2D& entityCollision2D = entity->GetComponent<CollisionComponent2D>();
|
||||
|
||||
Nz::Vector3f offset;
|
||||
Nz::InstancedRenderableRef renderable = GenerateCollision2DMesh(entity, &offset);
|
||||
if (renderable)
|
||||
|
|
|
|||
Loading…
Reference in New Issue