Index: mesh.c =================================================================== --- mesh.c (revision 28107) +++ mesh.c (revision 28108) @@ -1015,7 +1015,7 @@ static void ia_gen_cb(void *hid_ctx, void *caller_data, pcb_hid_attribute_t *attr) { mesh_layer_reset(); - mesh.layer = CURRENT; + mesh.layer = PCB_CURRLAYER(PCB); dlg2mesh();