mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 01:54:37 +08:00
fix null exceptions
This commit is contained in:
parent
e1cd398da2
commit
0a12151d75
@ -209,6 +209,7 @@ namespace DCFApixels
|
||||
public void Prepare(Camera camera, GizmosList<WidthOutLineGizmo> list) { }
|
||||
public void Render(Camera camera, GizmosList<WidthOutLineGizmo> list, CommandBuffer cb)
|
||||
{
|
||||
if (camera == null) { return; }
|
||||
default(GeometryUnlitMat).GetMaterial().SetPass(0);
|
||||
GL.Begin(GL.LINES);
|
||||
var cameraPosition = camera.transform.position;
|
||||
@ -269,6 +270,7 @@ namespace DCFApixels
|
||||
public void Prepare(Camera camera, GizmosList<ZigzagLineGizmo> list) { }
|
||||
public void Render(Camera camera, GizmosList<ZigzagLineGizmo> list, CommandBuffer cb)
|
||||
{
|
||||
if (camera == null) { return; }
|
||||
GL.PushMatrix();
|
||||
default(GeometryUnlitMat).GetMaterial().SetPass(0);
|
||||
GL.Begin(GL.LINES);
|
||||
|
Loading…
Reference in New Issue
Block a user