private static bool BeginLineDrawing(Matrix4x4 matrix, bool dottedLines)
{
if (Event.current.type != EventType.Repaint)
{
return false;
}
Color c = s_Color * lineTransparency;
if (dottedLines)
{
HandleUtility.ApplyDottedWireMaterial();
}
else
{
HandleUtility.ApplyWireMaterial();
}
GL.PushMatrix();
GL.MultMatrix(matrix);
GL.Begin(1);
GL.Color(c);
return true;
}