public static void EndPaintTexture(PaintContext ctx, string editorUndoName)
 {
     ctx.ScatterAlphamap(editorUndoName);
     ctx.Cleanup();
 }