mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2026-04-21 20:35:54 +08:00
fix nullref
This commit is contained in:
parent
7d4bb3cf22
commit
c583d28079
@ -47,7 +47,7 @@ namespace DCFApixels
|
||||
public void Render(Camera camera, GizmosList<TextGizmo> list, CommandBuffer cb) { }
|
||||
public void PostRender(Camera camera, GizmosList<TextGizmo> list)
|
||||
{
|
||||
if (camera == null) { return; }
|
||||
if (camera == null || Event.current == null) { return; }
|
||||
if (Event.current.type != EventType.Repaint) { return; }
|
||||
Color dfColor = GUI.color;
|
||||
InitStatic();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user