fix nullref

This commit is contained in:
Mikhail 2025-12-01 17:38:43 +08:00
parent 7d4bb3cf22
commit c583d28079

View File

@ -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();