Index: trunk/src_plugins/export_dxf/dxf.c =================================================================== --- trunk/src_plugins/export_dxf/dxf.c (revision 29425) +++ trunk/src_plugins/export_dxf/dxf.c (revision 29426) @@ -333,6 +333,8 @@ pcb_message(PCB_MSG_ERROR, "Can't render dxf template header\n"); fclose(dxf_ctx.f); + if (!dxf_cam.active) dxf_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&dxf_cam) == 0) { if (!dxf_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "dxf cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_excellon/excellon.c =================================================================== --- trunk/src_plugins/export_excellon/excellon.c (revision 29425) +++ trunk/src_plugins/export_excellon/excellon.c (revision 29426) @@ -283,6 +283,8 @@ pcb_drill_export_excellon(PCB, &udrills, conf_excellon.plugins.export_excellon.unplated_g85_slot, options[HA_excellonfile_coordfmt].lng, fn); } + if (!excellon_cam.active) excellon_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&excellon_cam) == 0) { if (!excellon_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "excellon cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_gcode/gcode.c =================================================================== --- trunk/src_plugins/export_gcode/gcode.c (revision 29425) +++ trunk/src_plugins/export_gcode/gcode.c (revision 29426) @@ -365,6 +365,8 @@ } } + if (!gctx.cam.active) gctx.cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&gctx.cam) == 0) { if (!gctx.cam.okempty_group) pcb_message(PCB_MSG_ERROR, "gcode cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_gerber/gerber.c =================================================================== --- trunk/src_plugins/export_gerber/gerber.c (revision 29425) +++ trunk/src_plugins/export_gerber/gerber.c (revision 29426) @@ -681,6 +681,8 @@ pcb_drill_export_excellon(PCB, &udrills, conf_gerber.plugins.export_gerber.unplated_g85_slot, 0, filename); } + if (!gerber_cam.active) gerber_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&gerber_cam) == 0) { if (!gerber_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "gerber cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_png/png.c =================================================================== --- trunk/src_plugins/export_png/png.c (revision 29425) +++ trunk/src_plugins/export_png/png.c (revision 29426) @@ -777,6 +777,8 @@ free(white); free(black); + if (!png_cam.active) png_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&png_cam) == 0) { if (!png_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "png cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_ps/eps.c =================================================================== --- trunk/src_plugins/export_ps/eps.c (revision 29425) +++ trunk/src_plugins/export_ps/eps.c (revision 29426) @@ -343,6 +343,8 @@ fclose(f); + if (!eps_cam.active) eps_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&eps_cam) == 0) { if (!eps_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "eps cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_ps/ps.c =================================================================== --- trunk/src_plugins/export_ps/ps.c (revision 29425) +++ trunk/src_plugins/export_ps/ps.c (revision 29426) @@ -657,6 +657,8 @@ fclose(fh); } + if (!ps_cam.active) ps_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&ps_cam) == 0) { if (!ps_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "ps cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str); Index: trunk/src_plugins/export_svg/svg.c =================================================================== --- trunk/src_plugins/export_svg/svg.c (revision 29425) +++ trunk/src_plugins/export_svg/svg.c (revision 29426) @@ -363,6 +363,8 @@ } f = NULL; + if (!svg_cam.active) svg_cam.okempty_content = 1; /* never warn in direct export */ + if (pcb_cam_end(&svg_cam) == 0) { if (!svg_cam.okempty_group) pcb_message(PCB_MSG_ERROR, "svg cam export for '%s' failed to produce any content (layer group missing)\n", options[HA_cam].str);